代理配置
cmd代理
cmd配置代理: set http_proxy=http://199.199.199.199:9999
cmd清除代理:reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyEnable /t REG_DWORD /d 0 /f
Git代理
Git代理配置:git config --global http.proxy http://199.199.199.199:9999
git清除代理:
git config --global --unset http.proxy
git config --global --unset https.proxy
linux临时代理:
export http_proxy=http://199.199.199.199:9999
export https_proxy=http://199.199.199.199:9999
export ftp_proxy=http://199.199.199.199:9999
NPM代理:
npm 清楚代理: npm config delete proxy
设置npm代理:
npm config set proxy=http://199.199.199.199:9999
npm config set registry=http://registry.npmjs.org
npm config set https-proxy http://199.199.199.199:9999
设置淘宝镜像:npm install -g cnpm --registry=https://registry.npm.taobao.org