I created on a MAC a clean Laravel application. It runs correctly if I execute "php artisan serve".
I tried to run npm run dev and I get this error:
> cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js
events.js:160
throw er; // Unhandled 'error' event
^
Error: spawn node_modules/webpack/bin/webpack.js ENOENT
at exports._errnoException (util.js:1018:11)
at Process.ChildProcess._handle.onexit (internal/child_process.js:193:32)
at onErrorNT (internal/child_process.js:367:16)
at _combinedTickCallback (internal/process/next_tick.js:80:11)
at process._tickCallback (internal/process/next_tick.js:104:9)
at Module.runMain (module.js:606:11)
at run (bootstrap_node.js:393:7)
at startup (bootstrap_node.js:150:9)
at bootstrap_node.js:508:3
As seen on SO, I have tried to remove the node_module and re-execute npm init but it did not help.
Versions:
- npm 2.15.11
- node v6.10.1
- Laravel Framework 5.4.23
Any help appreciated.
via user3429660
No comments:
Post a Comment