npm更换阿里云镜像

青春壹個敷衍的年華 提交于 2020-11-01 16:27:31

因为npm安装插件是从国外服务器下载,受网络影响大,经常下载缓慢或出现异常

同时避免一些坑,就没按照网上的方法使用cnpm,而是改动npm的镜像源

阿里在国内搭建了镜像服务器:http://npm.taobao.org

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

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

改动完成后,查看本地镜像源

npm config get registry

安装新版Vue CLI3

npm install -g @vue/cli

查看版本呢

vue --version

 

 

Reference:

https://blog.csdn.net/a249040113/article/details/81567430

https://blog.csdn.net/huiqingshuiping/article/details/102823143

https://juejin.im/post/6878194344273117192

https://www.cnblogs.com/chase-star/p/10455703.html

https://zhuanlan.zhihu.com/p/144946960

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!