美文网首页
command failed: npm install --lo

command failed: npm install --lo

作者: 果汁果肉 | 来源:发表于2019-06-26 19:13 被阅读0次
vue create [project-name]

使用vue-cli指令创建项目时报错

command failed: npm install --loglevel error

原因可能是当前的node.js版本与npm版本不匹配
解决方案
到node.js官网下载稳定版node.js
重新安装。

node --version
npm --version

再次创建项目就成功了

相关文章

网友评论

      本文标题:command failed: npm install --lo

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