laravel-mix: Error running mix
- Laravel Mix Version: 0.8.8
- Node Version (
node -v): 7.6.0 - NPM Version (
npm -v): 4.1.2 - OS: Windows 10 (Laravel Homestead)
Description:
I’ve run npm install straight out of the box, which works fine. However, when run “npm run dev” I get an error:
npm ERR! node node_modules/cross-env/bin/cross-env.js NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js
The error code is ELIFECYCLE.
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 17 (1 by maintainers)
Found a solution, had originally used npm install --no-bin-links it didn’t work, but did npm rebuild --no-bin-links and npm run dev works fine @MysticSheik @JeffreyWay
Just want to comment, I had the same problem as OP and the
npm rebuild --no-bin-linksworked for me. I am running nodejs 8 on ubuntu 16.04 so I wasn’t sure if the “do this if you’re running a VM on Windows” thing would work, but it did. Thanks!Do
npm install cross-env -Dand then update your package.json file to look like this:https://github.com/laravel/laravel/blob/master/package.json#L4-L8
I tried running “npm rebuild --no-bin-links” with no luck. Still the ELIFECYCLE. I decided to try a fresh install on my Windows 7, but got the same results after running:
My errors looks like this My NPM Debug Log file looks like this
Hmm, not sure at all. You’re the only one who has made an issue like this.
Is anyone else experienced this, who can shed some light on a solution?