在命令行中使用命令 npm run dev运行从网上下载的一个vue项目时出现了以下报错:
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! ruoyi@3.6.0 dev: `vue-cli-service serve`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the ruoyi@3.6.0 dev 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:UsersAdministratorAppDataRoaming
pm-cache_logs?1-08-17T11_52_18_441Z-debug.log
这里报错的原因是因为 node_modules文件的缺失。
解决办法:
npm i
PS E:dineDine_BackendwxdineRuoYi-Vue-master
uoyi-ui> npm i
npm WARN deprecated runjs@4.4.2: This project has been renamed to 'tasksfile'. Install using 'npm install tasksfile' instead.
npm WARN deprecated babel-eslint@10.1.0: babel-eslint is now @babel/eslint-parser. This package will no longer receive updates.
npm WARN deprecated html-webpack-plugin@3.2.0: 3.x is