https://cloud.tencent.com/developer/article/1372949
- npm config set registry http://mirrors.cloud.tencent.com/npm/
- npm config get registry
- npm config set registry https://registry.npmmirror.com
https://zhuanlan.zhihu.com/p/337940332
查看代理
npm config get or npm config list
清除npm代理
npm config delete proxy and npm config delete https-proxy
# 假设本地socks5代理端口为1081
# 首先安装转换工具
npm install -g http-proxy-to-socks
# 然后使用这个工具监听8002端口,支持http代理,然后所有8002的http代理数据都将转换成socks的代理数据发送到1081上
hpts -s 10.2.0.0.102:10810 -p 108182
# 最后设置npm代理为108
npm config set proxy http://127.0.0.1:108102
npm config set https-proxy http://127.0.0.1:108182
--loglevel verbose: verbose output. How to see logs from npm installation?