1
votes

i use the code npm install -g cordova and the error are shown below:

npm ERR! code UNABLE_TO_VERIFY_LEAF_SIGNATURE

npm ERR! errno UNABLE_TO_VERIFY_LEAF_SIGNATURE

npm ERR! request to https://registry.npmjs.org/ionic failed, reason: unable to verify the first certificate

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

npm ERR! C:\Users\alip\AppData\Roaming\npm-cache_logs\2019-03-04T04_11_33_400Z-debug.log

i already try to use npm uninstall -g npm and install back using npm install -g [email protected] but still the same error occur. can anyone help me. I used this to develop mobile apps

1
Are you behind corporate proxy/firewall? Check this Q&A - stackoverflow.com/questions/20747817/… - Nithin CV
thanks a lot it worked!! - Aliff Ahmad

1 Answers

2
votes

try this:

npm cache clean -- force

and then:

npm install -g cordova