npm
npm config set proxy=HOST:PORT
附带写上npm的registry设置
npm config set registry=http://registry.npmjs.org
或者
安装nrm
git
git config –global http.proxy HOST:PORT
git config –global https.proxy HOST:PORT
cmd[win版本]
set http_proxy=HOST:PORT
npm config set proxy=HOST:PORT
附带写上npm的registry设置
npm config set registry=http://registry.npmjs.org
或者
安装nrm
git config –global http.proxy HOST:PORT
git config –global https.proxy HOST:PORT
set http_proxy=HOST:PORT