1,配置npm代理
npm config set proxy=http://127.0.0.1:8087
npm config set https-proxy http://server:port | npm config set registry=http://registry.npmjs.org
若配置完成使用报错或者不走,
npm config set registry http://registry.npm.taobao.org
2、取消代理
npm config delete proxy
npm config delete https-proxy
npm config delete proxy
npm config set proxy=http://ip:端口
npm config set registry=http://registry.npmjs.org
npm config set https-proxy http://p:端口
git config --global --unset http.proxy
git config --global --unset https.proxy git config --global
http.proxy http://p:端口
export http_proxy=http://p:端口
export https_proxy=http://p:端口
export ftp_proxy=http://p:端口
参考文档 https://www.cnblogs.com/marklove/p/10805432.html