Last Updated: February 25, 2016
·
3.367K
· juanlanus

npm behind corporate proxy

npm timeouted trying to install anything.

Turns out that it needs the system proxy to be configured, thus:

$ npm config set proxy http://proxy.corp.mycorp.com:8888  
$ npm config set https-proxy http://proxy.corp.mycorp.com:8888  

The information came from this useful blog post:

http://jjasonclark.com/how-to-setup-node-behind-web-proxy

1 Response
Add your response

I work in an environment where NPM was rejecting the SSL certificate used by our proxy. To fix this, one must set strict-ssl to false.

$ npm config set strict-ssl false

over 1 year ago ·