Nodejs or npm behind a corporate firewall

npm

 

To setup node package manager behind a corporate  firewall. Add the following to you .npmrc file. The file is located at  the user's home directory

 

File

<user.home>/.npmrc

 

 

Content

proxy=http://<proxy_server>:<proxy_server_port>
https-proxy=https://<proxy_server>:<proxy_server_port>
strict-ssl=false
registry=http://registry.npmjs.org/

 

 

From command line 

npm --proxy http://proxy_server:proxy_port --without-ssl --insecure -g install

 

I hope this solution works for you. Thanks for stopping by.