Created
November 26, 2012 03:45
-
-
Save lambdalisue/4146515 to your computer and use it in GitHub Desktop.
Mini script to enable npm under proxy
This file contains hidden or 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
| #!/bin/bash | |
| # | |
| # Mini-script to enable npm under proxy | |
| # | |
| PROXY_ADDR=proxy.kuins.net | |
| PROXY_PORT=8080 | |
| # set proxy to npm | |
| npm config set proxy http://$PROXY_ADDR:$PROXY_PORT | |
| # use http registry | |
| npm config set registry http://registry.npmjs.org/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment