npm proxy settings

problem

When npm install an update package, the network is very slow.

solve

Npm set to http proxy, only 2 command line:

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

reference

  • [npm Fails to Install over Socks5 Proxy](npm Fails to Install over Socks5 Proxy)

Reproduced in: https: //my.oschina.net/fxtxz2/blog/3058774

Guess you like

Origin blog.csdn.net/weixin_34351321/article/details/91773513