Skip to content

Instantly share code, notes, and snippets.

@sandeepthukral
Created April 7, 2015 08:40
Show Gist options
  • Save sandeepthukral/f8b10f699333b6509e93 to your computer and use it in GitHub Desktop.
Save sandeepthukral/f8b10f699333b6509e93 to your computer and use it in GitHub Desktop.
How to configure proxy for npm
npm config set proxy http://proxy.company.com:8080
npm config set https-proxy http://proxy.company.com:8080
My password had a @ and a % in it, but url encoding it (and then not putting quotes around) worked for me
I struggled a bit because I have a @ character in my password :-)
The solution is to surround the username and password in quotes
npm config set proxy http://"user:P@ssword"@proxy.server:1234
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment