Monday, 3 November 2014

node.js NPM tunnelling problem

Had a problem connecting node.js/npm via my work pc which was inside a corporate firewall. Followed the following settings and it works for me. Key thing is make sure it connects via your corporate proxy.

Check your settings first.

npm config ls -l


Then set the following configs.

npm config set registry http://registry.npmjs.org/

npm config set strict-ssl = false

npm config set proxy "http://<userid>:<password>@<proxy url>:8080"


npm config set https-proxy "http://<userid>:<password>@<proxy url>:8080"


Your user may need to include the domain of your company, if so make sure it's encoded (e.g. "\", "%5C").

No comments:

Post a Comment