互联网技术 · 2024年2月15日 0

优化npm install速度的方法

国外镜像会很慢

可用 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