解决npm install 缓慢的问题

来源:田珊珊个人博客 时间:2020-11-05

国外镜像会很慢

可用 get命令查看registry

npm congfig get registry

原版结果为

http://registry.npmjs.org

用set命令换成阿里的镜像就可以了

npm config set registry http://registry.npm.taobao.org

or

npm install --registry=https://registry.npm.taobao.org

--disturl=https://npm.taobao.org/mirrors/node

文章来源:田珊珊个人博客

来源地址:http://www.tianshan277.com/856.html

相关文章

A5创业网 版权所有