First time here? You are looking at the most recent posts. You may also want to check out older archives or the tag cloud. Please leave a comment, ask a question and consider subscribing to the latest posts via RSS. Thank you for visiting! (hide this)

Lately the proxy configuration of my network has been changed, and moved from a transparent proxy, that required no configuration, to a “standard” proxy which requires a configuration script.

Unfortunately NPM doesn’t pick up the proxy configuration of Windows, and it took me a while to understand how to download node packages via NPM, so sharing here.

Basically you just run config set option of npm to set the proxy and https-proxy config keys, like this:

npm config set proxy http://proxy.example.com:8080
npm config set https-proxy http://proxy.example.com:8443

And here you go.

Tags: , ,
posted on Thursday, July 25, 2013 11:37 AM

Comments on this entry:

# re: Using NPM behind a firewall

Left by Thomas Yellow at 10/17/2013 4:33 PM

In my opinion good firewal is the most important basic!

Comments have been closed on this topic.