Configuring npm proxy details so that bower install work through a proxy

Trying to connect to npm while on a proxy?

When connected to a proxy and downloading bower depencies via the console/command line the following settings need to be set.

Update npm configs

npm config set proxy http://[username]:password]@[url]:[port]

npm config set https-proxy http://[username]:password]@[url]:[port]

Now you should be able to install dependencies through the proxy using npm

Example npm commands

bower install
npm install

 

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.