-
-
Save iAladdin/9d18909e35570036e4f951cf523edb75 to your computer and use it in GitHub Desktop.
Set proxy for npm and git
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
# set a proxy | |
export HTTP_PROXY= | |
export HTTPS_PROXY=$HTTP_PROXY | |
npm config set proxy $HTTP_PROXY | |
npm config set https.proxy $HTTPS_PROXY | |
npm config set https-proxy $HTTPS_PROXY | |
git config --global http.proxy $HTTP_PROXY | |
git config --global https.proxy $HTTPS_PROXY | |
# unset proxy | |
npm config delete proxy | |
npm config delete https.proxy | |
npm config delete https-proxy | |
git config --global --unset http.proxy | |
git config --global --unset https.proxy |
Author
iAladdin
commented
Jul 17, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment