npm 更改 阿里镜像源 方法

Node 的官方模块仓库网速太慢,模块仓库切换到阿里的镜像。

查看本地镜像源

npm config get registry 

执行以下命令更改:

npm config set registry https://registry.npm.taobao.org --global

npm config set disturl https://npm.taobao.org/dist --global

或者使用

npm config set registry https://registry.npm.taobao.org/
发布了79 篇原创文章 · 获赞 7 · 访问量 3万+

猜你喜欢

转载自blog.csdn.net/weixin_44037416/article/details/103353716