npm run dev
был успешным.
npm run prod
был неудачным с:
ERR! код ELIFECYCLE
npm сообщение журнала после npm run prod:
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.
В чем проблема?
Вы можете попытаться очистить кэш npm и удалив папку node_module.
Удалить npm Кэш
$ npm cache clean --force
Удалить node_modules с помощью
$ rm -rf node_modules package-lock.json
Или удалите его вручную.
И затем запустите
$ npm install