npm run dev error after upgrading to Spark 4.0
See original GitHub issueI upgrade my project from Spark 3 to 4 this morning. When running npm run dev
I get the following error without much information on the cause at 95%. I’ve attached my npm-debug.log and webpack.mix.js files.
I’m running Homestead on Windows 10. I have symlinks enabled and npm install
worked without any errors.
vagrant@homestead:~/amp$ npm run dev
@ dev /home/vagrant/amp 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
fallbackLoader option has been deprecated - replace with “fallback” loader option has been deprecated - replace with “use” 95% emittingError: EIO: i/o error, close
npm ERR! Linux 4.4.0-51-generic npm ERR! argv “/usr/local/bin/node” “/usr/local/bin/npm” “run” “dev” npm ERR! node v7.4.0 npm ERR! npm v4.0.5 npm ERR! code ELIFECYCLE npm ERR! @ dev:
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
npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the @ dev script ‘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’. npm ERR! Make sure you have the latest version of node.js and npm installed. npm ERR! If you do, this is most likely a problem with the package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: 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 npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs npm ERR! Or if that isn’t available, you can get their info via: npm ERR! npm owner ls npm ERR! There is likely additional logging output above.npm ERR! Please include the following file with any support request: npm ERR! /home/vagrant/amp/npm-debug.log
Issue Analytics
- State:
- Created 7 years ago
- Comments:9
Top GitHub Comments
I also facing the same issue. This is what I did to solve the issue:
Another solution that worked for me:
Make sure you don’t have any other ‘npm run dev’ running for any other projects that you may have opened. In my case, I had another project running, and I installed a new project and then tried to run ‘npm run dev’, this caused the error. Close the first server and try to run the new project and it should work.