Vue-cli 3新建项目报错:ERROR command failed npm install –loglevel error —— 解决办法

Vue-cli 3使用命令vue create project创建新项目报错:

ERROR : command failed: npm install --loglevel error

完整日志信息如下:

2736 silly saveTree `-- vuex@3.0.1
2737 warn ajv-keywords@2.1.1 requires a peer of ajv@^5.0.0 but none is installed. You must install peer dependencies yourself.
2738 verbose stack Error: EINVAL: invalid argument, read

参考解决办法

1、使用以下命令:

npm cache clean --force 

2、在~/.vuerc文件中将”useTaobaoRegistry”: true设置为false。

来源:

https://www.srcmini02.com/1837.html

微信公众号
手机浏览(小程序)
0
分享到:
没有账号? 忘记密码?