npm和vscode启动项目报错 A complete log of this run can be found in:解决方法。

今天遇到一个问题,就是在npm 启动项目 npm run serve/dev的时候报了个错:

A complete log of this run can be found in:

报错如下图:
npm和vscode启动项目报错 A complete log of this run can be found in:解决方法。

项目启动不了,大概意思就是依赖包或者模板有问题,我们只需要找到node_modules把这个文件夹删掉,如下图:
npm和vscode启动项目报错 A complete log of this run can be found in:解决方法。
然后在运行npn install即可,从新安装一下我们的依赖包,在执行npm run serve/dev就解决啦
npm和vscode启动项目报错 A complete log of this run can be found in:解决方法。
这样项目就可以正常启动啦;