vue-cli创建项目特别慢解决方法

虽然设置过淘宝镜像npm install-g cnpm --registry=https://registry.npm.taobao.org

但是通过vue init webpack projectName新建项目是和淘宝镜像没关系的,因为vue-cli 用的是 npm 源,所以只要设置 npm 源就行了,可以提升创建速度:

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


https://blog.csdn.net/weixin_42454721/article/details/88138378

猜你喜欢

转载自www.cnblogs.com/luziluck/p/12640254.html