npm设置代理和取消代理

设置代理

具体代理端口要根据自己的来

npm config set proxy http://127.0.0.1:7890
npm config set https-proxy http://127.0.0.1:7890

取消代理

npm config delete proxy
npm config delete https-proxy

查看代理

npm config get proxy      # 应返回 `null`
npm config get https-proxy  # 应返回 `null`

你可能感兴趣的:(前端,npm,前端,node.js)