Created
April 7, 2015 08:40
-
-
Save sandeepthukral/f8b10f699333b6509e93 to your computer and use it in GitHub Desktop.
How to configure proxy for npm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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