Home > HOWTOs, Internet > Using `npm` behind a proxy

Using `npm` behind a proxy

To permanently set the configuration we can do this.
 npm config set proxy http://proxy.company.com:8080
npm config set https-proxy http://proxy.company.com:8080
If you need to specify credentials, they can be passed in the url using the following syntax.
 http://user_name:password@proxy.company.com:8080
To Redirect traffic over proxy.
 npm --https-proxy=http://proxy.company.com:8080 -g install npmbox
npm --https-proxy=http://proxy.company.com:8080 -g install kafka-node
More Details.
 http://wil.boayue.com/blog/2013/06/14/using-npm-behind-a-proxy/
Advertisements
Categories: HOWTOs, Internet
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: