Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

NPM throws error unable_to_get_issuer_cert_locally while installing any package behind corporate firewall

1.I downloaded node ( latest v4.6.0)

  1. Set proxy path FOR npm
  2. tried npm install
  3. I got the error --- UNABLE_TO_GET_ISSUER_CERT_LOCALLYenter image description here
like image 686
jayanthCoder Avatar asked Nov 29 '22 09:11

jayanthCoder


2 Answers

I could not get any help from google(people said downgrade to v0.x) but a colleague helped ..

npm set strict-ssl=false  

This helped ...

I am posting this question and answer for helping people who come across the same error

like image 141
jayanthCoder Avatar answered Dec 01 '22 22:12

jayanthCoder


Please try using this command:

npm config set registry http://registry.npmjs.org/
like image 42
Jing Avatar answered Dec 01 '22 22:12

Jing