npm设置代理服务器

1.设置代理命令

1
2
npm config set proxy http://username:password@127.0.0.1:8080
npm config set https-proxy http://username:password@127.0.0.1:8080

2.删除代理命令

1
2
npm config delete https-proxy
npm config delete proxy

3.查看代理设置

1
2
npm config get proxy
npm config get https-proxy
如果您觉得对您有帮助,谢谢您的赞赏!