码迷,mamicode.com
首页 > 其他好文 > 详细

vue-cli 项目踩坑 npm install 时出错

时间:2019-04-21 14:19:39      阅读:180      评论:0      收藏:0      [点我收藏+]

标签:src   The   pack   art   not   led   ref   踩坑   exist   

1、报错如下:

技术图片

 

2、此时你执行npm run dev  / npm run build 会报错如下

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! vue@1.0.0 dev: `webpack-dev-server --inline --progress --config build/webpack.dev.conf.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the vue@1.0.0 dev script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?

npm ERR! A complete log of this run can be found in:

 

3、解决方案

先执行:

npm cache clean --force

后:

npm install

 

4、参考:

https://blog.csdn.net/genius_yym/article/details/84645915

vue-cli 项目踩坑 npm install 时出错

标签:src   The   pack   art   not   led   ref   踩坑   exist   

原文地址:https://www.cnblogs.com/xxm980617/p/10744979.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!