不能正常启动vue项目,对比之后发现是没有node_modules文件夹,解决方法就是进入项目文件夹,运行npm安装命令,生成相应文件
错误日志:
1
2
3
4
5
6
7
| error code ELIFECYCLE
error errno 1
error admin@0.1.0 serve-dev: `vue-cli-service serve --mode dev`
error Exit status 1
error Failed at the admin@0.1.0 serve-dev script.
error This is probably not a problem with npm. There is likely additional logging output above.
verbose exit [ 1, true ]
|
1
| 输入cnpm install 或 npm install 后,再次启动npm run dev
|