- ssh in git behind proxy on windows 7
- NPM behind a proxy
- 如何在強制使用代理伺服器的環境下設定 git, npm, bower, gem, ionic 工具
- Angular 2 學習筆記 00 - 緣起與開發環境建置
- 多重 SSH Keys 與 Github 帳號
http://USERNAME:PASSWORD@IP:PORT
可以改為http://IP:PORT
。
npm config set http-proxy http://USERNAME:PASSWORD@IP:PORT
npm config set https-proxy http://USERNAME:PASSWORD@IP:PORT
npm set strict-ssl false
in C:\Users\USERNAME\.npmrc
:
proxy=http://USERNAME:PASSWORD@IP:PORT
http-proxy=http://USERNAME:PASSWORD@IP:PORT
https-proxy=http://USERNAME:PASSWORD@IP:PORT
strict-ssl=false
git config --global http.proxy http://USERNAME:PASSWORD@IP:PORT
git config --global https.proxy http://USERNAME:PASSWORD@IP:PORT
in C:\Users\USERNAME\.gitconfig
:
[http]
proxy = http://USERNAME:PASSWORD@IP:PORT
[https]
proxy = http://USERNAME:PASSWORD@IP:PORT
in C:\Users\USERNAME\.ssh\config
:
ProxyCommand connect -H IP:PORT %h %p
Host github.com
User git
Port 22
Hostname github.com
IdentityFile "C:\users\USERNAME\.ssh\id_rsa"
TCPKeepAlive yes
IdentitiesOnly yes
Host ssh.github.com
User git
Port 443
Hostname ssh.github.com
IdentityFile "C:\users\USERNAME\.ssh\id_rsa"
TCPKeepAlive yes
IdentitiesOnly yes
Host bitbucket.org
User git
Port 22
Hostname bitbucket.org
IdentityFile "C:\users\USERNAME\.ssh\id_rsa"
TCPKeepAlive yes
IdentitiesOnly yes
in setting.json
:
{
"http.proxy": "http://USERNAME:PASSWORD@IP:PORT",
}
# set proxy
nvm proxy http://USERNAME:PASSWORD@IP:PORT
# show a list of versions available for download.
nvm list available
# install node
nvm install NODE_VERSION
# set use node version
nvm use NODE_VERSION