設置git
git config --global https.proxy 代理地址
git config --global http.proxy 代理地址
複製代碼
查看npm
git config --global --get https.proxy
git config --global --get https.proxy
複製代碼
查詢的時候沒有打印任何東西證實沒有設置代理bash
取消ui
git config --global --unset http.proxy
git config --global --unset https.proxy
複製代碼
npm config set proxy http://10.22.129.20:8080
npm config set proxy https://10.22.129.20:8080
複製代碼
切換源爲國內淘寶鏡像spa
yarn config set registry https://registry.npm.taobao.org
複製代碼
查看代理代理
yarn config list
複製代碼
設置code
yarn config set proxy http://username:password@server:port
yarn confit set https-proxy http://username:password@server:port
複製代碼
取消server
yarn config delete proxy<br />yarn config delete https-proxy
複製代碼