Skip to content
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.

Getting an "UNABLE_TO_GET_ISSUER_CERT_LOCALLY" message #12701

Closed
HenryReissig opened this issue May 13, 2016 · 4 comments
Closed

Getting an "UNABLE_TO_GET_ISSUER_CERT_LOCALLY" message #12701

HenryReissig opened this issue May 13, 2016 · 4 comments

Comments

@HenryReissig
Copy link

hreissig01@HH0082013709 MINGW64 ~/desktop/helloreact
$ npm install express@4 --save
npm WARN package.json hello-react@1.0.0 No repository field.
npm WARN package.json hello-react@1.0.0 No README data
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\Program Files (x86)\nodejs\node.exe" "C:\Program Files (x86)\nodejs\node_modules\npm\bin\npm-cli.js" "install" "express@4" "--save"
npm ERR! node v4.4.4
npm ERR! npm v2.15.1
npm ERR! code UNABLE_TO_GET_ISSUER_CERT_LOCALLY

npm ERR! unable to get local issuer certificate
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! https://github.com/npm/npm/issues

npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\HReissig01\desktop\helloreact\npm-debug.log

@salamanderjoe
Copy link

salamanderjoe commented May 14, 2016

Please let me know if you are you connected via a proxy / company firewall

@salamanderjoe
Copy link

If you are, it may be that you need to add your CA to include your company's certificate chain like this
npm config set cafile="your_CA_file_here.pem"
More details can be found here: Link
Alternatively, you can do
npm config set strict-ssl false

@KaKmi
Copy link

KaKmi commented Jan 18, 2017

I user set cafile,then Ok ,thanks

@npm-robot
Copy link

We're closing this support issue as it has gone three days without activity. The npm CLI team itself does not provide support via this issue tracker, but we are happy when users help each other here. In our experience once a support issue goes dormant it's unlikely to get further activity. If you're still having problems, you may be better served by joining package.community and asking your question there.

For more information about our new issue aging policies and why we've instituted them please see our blog post.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants