Last Updated: February 25, 2016
·
5.164K
· theatlasroom

Setting npm proxy settings

Pretty simple really, I came across this post by @wboayue showing how to set proxy settings for npm.

2 Simple commands really

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

Additionally if you need to pass in user / password configs it can be done like so:

http://user_name:password@proxy.company.com:8080

Easy as! Thanks Wil Boayue