npm设置代理

指令如下:


npm config set proxy=http://127.0.0.1:1080
npm config set https-proxy=http://127.0.0.1:1080
npm config set registry=http://registry.npmjs.org


npm config set proxy=http://127.0.0.1:2080
npm config set https-proxy=http://127.0.0.1:2080