Last Updated: February 25, 2016
· 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  
$ npm config set https-proxy  

The information came from this useful blog post:

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 ·