【发布时间】:2020-06-25 07:38:13
【问题描述】:
npm run dev
成功了。
npm run prod
没有成功:
错误!代码生命周期
npm run prod 之后的 npm 日志消息:
DONE Compiled successfully in 91052ms 8:46:32 AM
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @ production: `cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --no-progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @ production 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! /root/.npm/_logs/2020-03-13T08_46_33_901Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @ prod: `npm run production`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @ 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! /root/.npm/_logs/2020-03-13T08_46_33_920Z-debug.log
To maintain team`s package version consistency,package version is fixed in package-lock.json.
有什么问题?
【问题讨论】:
-
在此处检查您的日志文件/root/.npm/_logs/2020-03-13T08_46_33_901Z-debug.log
标签: node.js laravel npm webpack