question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

npm run dev error after upgrading to Spark 4.0

See original GitHub issue

I 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

npm-debug.txt.txt webpack.mix.txt.txt

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:9

github_iconTop GitHub Comments

8reactions
allentcmcommented, Feb 14, 2017

I also facing the same issue. This is what I did to solve the issue:

  1. Remove all the Elixir dependencies.
  2. Remove less-loader dependency.
  3. Clear everything inside the node-modules folder.
  4. Do a fresh install for all the node modules. (npm install).
  5. Compile the the project. (npm run dev).
1reaction
jillztomcommented, Mar 29, 2017

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

npm run dev error after upgrading to Spark 4.0 #302 - GitHub
I upgrade my project from Spark 3 to 4 this morning. When running npm run dev I get the following error without much...
Read more >
Laravel 8 Installation - npm run dev Error - Stack Overflow
try to run npm install. then run npm install && npm run dev. it help me to solved this problem, btw im using...
Read more >
Spark npm run dev error - Laracasts
I am getting this error when I run >npm run dev cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress fallbackLoader option has been ...
Read more >
Upgrade Guide - Laravel Spark classic
Upgrading To Spark 6.0. Spark 6.0 is the first significant update of Spark since its original release. As such, it includes an all-new...
Read more >
Changelog | Meteor API Docs
Throwing an error when the login tokens are not generated well calling requestLoginTokenForUser. PR. Node updated to v14.19.3; npm update to v6.14.17 ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found