0.npm ERR! code ELIFECYCLE
vue项目运行npm run server以后出现以下错误提示
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! JSBank@0.1.0 serve-prod: vue-cli-service serve --mode=prod
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the JSBank@0.1.0 serve-prod 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! D:\codeEnv\node_cache_logs\2021-03-08T09_22_31_517Z-debug.log
1.运行npm install
运行npm install 以后。
67 packages are looking for funding
run npm fund for details
found 1 high severity vulnerability
run npm audit fix to fix them, or npm audit for details
2.运行npm audit fix
根据提示信息输入npm audit fix
found 1 high severity vulnerability
run npm audit fix to fix them, or npm audit for details
PS D:\code\FinancialFund\financial-vue-web\src\main\resources\static\vue> npm audit fix
3.npm run serve
运行以后,就可以了。
看的我热血沸腾啊https://www.237fa.com/