发布于2021-12-30
1.查看所有配置
npm config list
2.设置代理
npm config set proxy="http://127.0.0.1:1080"
npm config set proxy="socks5://127.0.0.1:1080"
3.删除代理
npm config delete proxy
4.设置淘宝镜像
npm config set registry=https://registry.npm.taobao.org
5.设置默认镜像
npm config set registry=https://registry.npmjs.org
评论(0)