vendredi 24 mars 2017

Laravel Mix Error

Very new to Laravel. Attempting to Larvel 5.4 mix. After running npm install and npm run dev I get the following error:

0 info it worked if it ends with ok 1 verbose cli [ '/usr/local/bin/node', '/usr/local/bin/npm', 'run', 'dev' ] 2 info using npm@2.15.9 3 info using node@v4.5.0 4 verbose run-script [ 'predev', 'dev', 'postdev' ] 5 info predev @ 6 info dev @ 7 verbose unsafe-perm in lifecycle true 8 info @ Failed to exec dev script 9 verbose stack Error: @ dev: `cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js` 9 verbose stack Exit status 1 9 verbose stack at EventEmitter.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/lifecycle.js:217:16) 9 verbose stack at emitTwo (events.js:87:13) 9 verbose stack at EventEmitter.emit (events.js:172:7) 9 verbose stack at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/spawn.js:24:14) 9 verbose stack at emitTwo (events.js:87:13) 9 verbose stack at ChildProcess.emit (events.js:172:7) 9 verbose stack at maybeClose (internal/child_process.js:829:16) 9 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5) 10 verbose pkgid @ 11 verbose cwd /Users/jluser/htdocs/laravel/project 12 error Darwin 16.4.0 13 error argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "dev" 14 error node v4.5.0 15 error npm v2.15.9 16 error code ELIFECYCLE 17 error @ dev: `cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js` 17 error Exit status 1 18 error Failed at the @ dev script 'cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js'. 18 error This is most likely a problem with the package, 18 error not with npm itself. 18 error Tell the author that this fails on your system: 18 error cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js 18 error You can get information on how to open an issue for this project with: 18 error npm bugs 18 error Or if that isn't available, you can get their info via: 18 error 18 error npm owner ls 18 error There is likely additional logging output above. 19 verbose exit [ 1, true ]

I installed webpage globally. This is brand new installation of Laravel, no modifications to webpack.mix.js or any other front-end files.



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2nwEIxs
via IFTTT

Aucun commentaire:

Enregistrer un commentaire