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
 "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\Administrator\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "run" "dev"
npm ERR! node v6.7.0
npm ERR! npm  v4.1.2
npm ERR! code ELIFECYCLE
npm ERR! douyu@1.0.0 dev: `node build/dev-server.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the douyu@1.0.0 dev script 'node build/dev-server.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 douyu package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node build/dev-server.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs douyu
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls douyu
npm ERR! There is likely additional logging output above.

when i input npm run dev,these errors appear. But my npm and node’s version are satisfy condition. npm-4.1.2 node-6.7.0. why the server.js cant run

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:17 (1 by maintainers)

github_iconTop GitHub Comments

15reactions
nomantufailcommented, Jan 9, 2018

npm install webpack-dev-server@2.9.7 --save-dev

run this command in your project directory. i hope this might help.

2reactions
newsapkotacommented, Oct 1, 2018

npm install --save-dev cross-env

Thanks, this save my day, it’s works.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why I can not run Npm run dev? - Stack Overflow
First run npm install cross-env npm install. Then run npm run dev.
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 >
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 >
npm ERR! Missing script: "dev" [Solved] | bobbyhadz
To solve the npm ERR! Missing script: "dev" error, make sure to ...
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