npm 启动项目 npm run serve/dev的时候报了个错:再次记录一下
! code ELIFECYCLE
npm ERR! errno 1
npm ERR! new@0.1.0 serve:vue-cli-service serve
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the new@0.1.0 serve script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:UsersAdminAppDataRoamingnpm-cache_logs2023-02-06T14_17_03_399Z-debug.log
项目启动失败,一直报错,翻译一下,大概意思就是依赖包或者模板有问题
1.需要找到node_modules
把这个文件夹删掉
如下图
2.然后cmd或者vscode终端再运行npm install
即可,这个命令会重新安装一下依赖包,最后在执行npm run serve
或npm run dev
就可以解决啦!
本文发布于:2024-01-31 21:55:44,感谢您对本站的认可!
本文链接:https://www.4u4v.net/it/170670934631623.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
留言与评论(共有 0 条评论) |