解决npm安装vue-cli时速度慢问题

1、检查本机上node和npm的版本号,npm是否大于4.0

2、安装vue-cli时经常卡住,如图

3、将npm的仓库地址改为淘宝镜像

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

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

4、附上参考地址:

https://www.v2ex.com/amp/t/382755

https://blog.csdn.net/shunchenggong/article/details/77816196

猜你喜欢

转载自blog.csdn.net/m0_46267375/article/details/121309707