美文网首页
vue init卡住,缓慢问题

vue init卡住,缓慢问题

作者: WJaven | 来源:发表于2019-02-17 12:04 被阅读0次

执行下面命令后非常卡

vue init webpack my_project_name

解决办法

npm的镜像替换成淘宝

1.看一下npm仓库地址:

npm get registry

得到>https://registry.npmjs.org/
2.替换地址

npm config set registry http://registry.npm.taobao.org/
备注:想要设置回原来的仓库地址就是将上面的命令地址改回去就行
npm config set registry https://registry.npmjs.org/

相关文章

网友评论

      本文标题:vue init卡住,缓慢问题

      本文链接:https://www.haomeiwen.com/subject/vfkgeqtx.html