Error when install -g appium

Hello! When I try install -g appium, i have error

C:\Users\mikerov_a>npm install -g appium

npm WARN registry Unexpected warning for https://registry.npmjs.org/: Miscellaneous Warning UNABLE_T

O_VERIFY_LEAF_SIGNATURE: request to https://registry.npmjs.org/appium failed, reason: unable to veri

fy the first certificate

npm WARN registry Using stale package data from https://registry.npmjs.org/ due to a request error d

uring revalidation.

C:\Users\mikerov_a\AppData\Roaming\npm\appium → C:\Users\mikerov_a\AppData\Roaming\npm\node_modules

\appium\build\lib\main.js

> appium-chromedriver@3.0.1 install C:\Users\mikerov_a\AppData\Roaming\npm\node_modules\appium\node_

modules\appium-chromedriver

> node install-npm.js

info Chromedriver Install Installing Chromedriver version ‘2.30’ for platform ‘win’ and architecture

‘32’

info Chromedriver Install Opening temp file to write chromedriver_win32 to…

info Chromedriver Install Downloading https://chromedriver.storage.googleapis.com/2.30/chromedriver_

win32.zip…

RequestError: Error: unable to verify the first certificate

at new RequestError (C:\\Users\\mikerov\_a\\AppData\\Roaming\\npm\\node\_modules\\appium\\node_modules\\req

uest-promise\lib\errors.js:11:15)

at Request.RP$callback \[as \_callback\] (C:\\Users\\mikerov\_a\\AppData\\Roaming\\npm\\node_modules\\appiu

m\node_modules\request-promise\lib\rp.js:60:32)

at self.callback (C:\\Users\\mikerov\_a\\AppData\\Roaming\\npm\\node\_modules\\appium\\node_modules\\reques

t\request.js:186:22)

at emitOne (events.js:116:13)

at Request.emit (events.js:211:7)

at Request.onRequestError (C:\\Users\\mikerov\_a\\AppData\\Roaming\\npm\\node\_modules\\appium\\node_modul

es\request\request.js:878:8)

at emitOne (events.js:116:13)

at ClientRequest.emit (events.js:211:7)

at TLSSocket.socketErrorListener (\_http\_client.js:387:9)

at emitOne (events.js:116:13)

at TLSSocket.emit (events.js:211:7)

at emitErrorNT (internal/streams/destroy.js:64:8)

at \_combinedTickCallback (internal/process/next\_tick.js:138:11)

at process.\_tickCallback (internal/process/next\_tick.js:180:9)

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.1.3 (node_modules\appium\node_modules\fse

vents):

npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.3: wanted {“os”:

“darwin”,“arch”:“any”} (current: {“os”:“win32”,“arch”:“x64”})

npm ERR! code ELIFECYCLE

npm ERR! errno 1

npm ERR! appium-chromedriver@3.0.1 install: `node install-npm.js`

npm ERR! Exit status 1

npm ERR!

npm ERR! Failed at the appium-chromedriver@3.0.1 install script.

npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:

npm ERR! C:\Users\mikerov_a\AppData\Roaming\npm-cache\_logs\2017-12-27T14_21_57_659Z-debug.log

This is an error related to your current npm, please take a look at this thread: https://github.com/npm/npm/issues/17146 and see if there are some workaround solutions there can work for you.

This error that had been :
info Chromedriver Install Installing Chromedriver version ‘2.30’ for platform ‘win’ and architecture
‘32’
info Chromedriver Install Opening temp file to write chromedriver_win32 to…
info Chromedriver Install Downloading https://chromedriver.storage.googleapis.com/2.30/chromedriver_
win32.zip…
RequestError: Error: unable to verify the first certificate
at new RequestError

For future reference, if you’re having trouble installing Appium via npm due to Chromedriver issues, you can download the Appium Desktop installer. Note that the version of the Desktop doesn’t line up with the actual version of Appium, so you’ll need to get Appium Desktop 1.6.3 (includes Appium 1.8.1) in order to support Katalon Studio 5.10.1:

– Chris