![npm config set cafile windows npm config set cafile windows](https://imgs.developpaper.com/imgs/3593353094-5db12e18c34fe_articlex.png)
#Npm config set cafile windows install#
Yet it still times out with the same error $ npm install coffee-script I used to get SSL certificate errors in my web browser too, until I installed the ‘npmCA’ certificate as a ‘trusted root certification authority’ in Control Panel’s Internet Options (screenshot )Įdit: I tried an insecure workaround per npm set strict-ssl false How can I fix this? Without compromising security. To connect to insecurely, use `-no-check-certificate'. connected.ĮRROR: cannot verify 's certificate, issued by `/C=US/ST=CA/L=Oakland/O=npm/OU=npm Certificate to locally verify the issuer's authority.
![npm config set cafile windows npm config set cafile windows](https://img-blog.csdnimg.cn/20200902160254567.png)
I believe the problem relates to SSL certificates, because if I download that URL with wget, I get an explicit error about certificates $ wget I know the environment variable is correct, because the Python package manager pip follows it correctly. I’ve configured the environment variable https_proxy (per the npm user guide). While I happen to use a https proxy, I’m confident this isn’t the problem.
![npm config set cafile windows npm config set cafile windows](https://smoothprogramming.com/wp-content/uploads/2016/07/EnvironmentVariables.jpg)
However, when I browse to that same URL in my web browser (Google Chrome) it loads fine (see footnote). Npm ERR! at Socket.socketOnData (http.js:1393:11) Npm ERR! at ClientRequest.g (events.js:193:14) Npm ERR! at ClientRequest.onConnect (c:\Program Files\nodejs\node_modules\npm\node_modules\request\tunnel.js:148:19) Npm ERR! Error: tunneling socket could not be established, sutatusCode=403 After a long wait, I eventually get an error ‘tunneling socket could not be established, sutatusCode=403’. When I try to install a package with npm, it doesn’t work.