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

See original GitHub issue
  • Laravel Mix Version: 1.2.2
  • Node Version: v8.1.4
  • NPM Version: 5.3.0
  • OS: macOS 10.12.5

Description:

Running npm run dev causes the error show below. I’ve tried rm -rf node_modules && npm cache clear --force.

npm run dev

> @ dev /Users/Till/Development/Sites/xxx
> 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:182
      throw er; // Unhandled 'error' event
      ^

Error: spawn node_modules/webpack/bin/webpack.js ENOENT
    at exports._errnoException (util.js:1022:11)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:189:19)
    at onErrorNT (internal/child_process.js:366:16)
    at _combinedTickCallback (internal/process/next_tick.js:102:11)
    at process._tickCallback (internal/process/next_tick.js:161:9)
    at Function.Module.runMain (module.js:607:11)
    at startup (bootstrap_node.js:158:16)
    at bootstrap_node.js:575:3
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @ dev: `cross-env 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.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/Till/.npm/_logs/2017-07-18T19_03_57_277Z-debug.log

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:32 (2 by maintainers)

github_iconTop GitHub Comments

309reactions
JeffreyWaycommented, Jul 19, 2017

Please try:

rm -rf node_modules
rm package-lock.json
npm cache clear --force
npm install
12reactions
nouh-ayadicommented, Nov 14, 2017

npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! yt-devmeetup-vue@1.0.0 dev: node build/dev-server.js npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the yt-devmeetup-vue@1.0.0 dev script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! /Users/nouh/.npm/_logs/2017-11-14T12_41_32_305Z-debug.log

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why I can not run Npm run dev? - Stack Overflow
Basically delete the node_modules folder and package-lock.json file , clear cache and do an npm install. Worked for me. Share.
Read more >
npm run dev error - Laracasts
One of the files where used by another process and could not be overwritten or some permission issue probably. I think you really...
Read more >
How To Fix “Laravel Mix NPM run dev error” - YouTube
This video will help you to solve the annoying “Laravel Mix NPM run dev error ” that you probably have seen before when...
Read more >
Error on npm run dev with Laravel Project · Issue #2761 - GitHub
I get following error when i am try to run npm run dev command on windows power-shell ... npm ERR! npm ERR! Failed...
Read more >
npm run dev issue (npm ERR! code ELIFECYCLE) - scmGalaxy
Error:- ; Solution:- ; Step 1:- Run this command to verify cache ; Step 2:- Recheck your package.json and webpack.mix.js file it is...
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