Laravel Mix Version: 1.4.3
Node Version: v8.9.1
NPM Version: 5.5.1
OS: macOS 10.12.6
Description:
ze Chunks Chunk Names
mix.js 8.27 kB 0 [emitted] mix
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! @ development: cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the @ development 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! /Users/sunny/.npm/_logs/2017-12-21T17_00_33_319Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! @ dev: npm run development
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the @ 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! /Users/sunny/.npm/_logs/2017-12-21T17_00_33_347Z-debug.log
node_modules安装问题,执行以下:
rm -rf node_modules
rm package-lock.json
npm cache clear --force
npm install
本文描述了在macOS10.12.6环境下使用Laravel Mix Version 1.4.3与Node.js v8.9.1、NPM 5.5.1发生错误的过程及解决方案。主要问题出现在webpack配置错误导致的npm生命周期脚本失败。文章提供了详细的错误日志,并给出了清理node_modules、package-lock.json以及npm缓存后重新安装的解决步骤。
1万+

被折叠的 条评论
为什么被折叠?



