npm切换源
# npm切换源
配置格式:
npm config set registry URL
如:切换到淘宝镜像:
npm config set registry https://registry.npmmirror.com
1
相关源:
npm ---- https://registry.npmjs.org/
cnpm --- http://r.cnpmjs.org/
taobao - https://registry.npmmirror.com
edunpm - http://registry.enpmjs.org/
eu ----- http://registry.npmjs.eu/
au ----- http://registry.npmjs.org.au/
sl ----- http://npm.strongloop.com/
nj ----- https://registry.nodejitsu.com/
pt ----- http://registry.npmjs.pt/
1
2
3
4
5
6
7
8
9
2
3
4
5
6
7
8
9
查看配置源:
npm config get registry
编辑此页 (opens new window)
上次更新: 2022/01/27, 12:58:58