Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

showing error for npm run dev #21

Open
yashurade opened this issue Apr 25, 2020 · 1 comment
Open

showing error for npm run dev #21

yashurade opened this issue Apr 25, 2020 · 1 comment

Comments

@yashurade
Copy link

yashurade commented Apr 25, 2020

PS C:\Users\Acer\newelection\ethereum_voting_dapp-master\chapter2\node_modules\webpack-dev-server> npm run webpack-dev-server

[email protected] webpack-dev-server C:\Users\Acer\newelection\ethereum_voting_dapp-master\chapter2\node_modules\webpack-dev-server
node examples/run-example.js

internal/modules/cjs/loader.js:983
throw err;
^

Error: Cannot find module 'C:\Users\Acer\newelection\ethereum_voting_dapp-master\chapter2\node_modules\webpack-dev-server\examples\run-example.js'
er.js:980:15)
at Function.Module._load (internal/modules/cjs/loader.js:862:27)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:74:12)
at internal/main/run_main_module.js:18:47 {
}
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] webpack-dev-server: node examples/run-example.js
npm ERR! Exit status 1
PS C:\Users\Acer\newelection\ethereum_voting_dapp-master\chapter2\node_modules\webpack-dev-server> npm run webpack-dev-server

[email protected] webpack-dev-server C:\Users\Acer\newelection\ethereum_voting_dapp-master\chapter2\node_modules\webpack-dev-server
node examples/run-example.js

internal/modules/cjs/loader.js:983
throw err;
^

Error: Cannot find module 'C:\Users\Acer\newelection\ethereum_voting_dapp-master\chapter2\node_modules\webpack-dev-server\examples\run-example.js'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:980:15)
at Function.Module._load (internal/modules/cjs/loader.js:862:27)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:74:12)
at internal/main/run_main_module.js:18:47 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] webpack-dev-server: node examples/run-example.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] webpack-dev-server 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! C:\Users\Acer\AppData\Roaming\npm-cache_logs\2020-04-25T21_56_53_268Z-debug.log

i am not able to run npm run dev getting the above error

@MrAnayDongre
Copy link

Check the package.json file and check it it contains webpack-dev-server.
If it doesn't you can install it by using the command npm install webpack-dev-server --save-dev .
For further details check the following page

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants