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
Written by Juan Lanus
Related protips
1 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
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Nodejs
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#