镜像配置
设置npm镜像
# 配置国内淘宝镜像包
npm config set registry https://registry.npm.taobao.org
# 临时使用
npm --registry https://registry.npm.taobao.org install express
# 持久使用
npm config set registry https://registry.npm.taobao.org
# 查看当前使用的镜像地址
npm config get registry
# 切换回原镜像
npm config set registry https://registry.npmjs.org
npm可用镜像列表
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/
转载请注明来源,欢迎对文章中的引用来源进行考证,欢迎指出任何有错误或不够清晰的表达。可以在下面评论区评论,也可以邮件至 [email protected]