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

'webpack-dev-server' is not recognized as an internal or external command, operable program or batch file. #14

Closed
ThuyNT13 opened this issue Sep 6, 2017 · 3 comments

Comments

@ThuyNT13
Copy link
Owner

ThuyNT13 commented Sep 6, 2017

not finding webpack-dev-server in Windows.

tried adding following to package.json, which didn't make a difference:

"start": "webpack-dev-server --hot -d --config webpack.dev.config.js --content-base public/ --progress --colors"

but also tried globally installing based on some stackoverflow responses, which also didn't work:

$ npm install -g webpack-dev-server
@ThuyNT13
Copy link
Owner Author

ThuyNT13 commented Sep 6, 2017

remove from package.json line above:

-d --config webpack.dev.config.js --content-base public/ --progress --colors

@ThuyNT13 ThuyNT13 closed this as completed Sep 6, 2017
@Ukmandal
Copy link

Ukmandal commented Dec 8, 2017

$ npm start

angular2-webpack@1.0.0 start C:\Users\Man\project\app
webpack-dev-server --hot -d --config webpack.dev.config.js --content-base public/ --progress port 8080

'webpack-dev-server' is not recognized as an internal or external command,
operable program or batch file.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! angular2-webpack@1.0.0 start: webpack-dev-server --hot -d --config webpack.dev.config.js --content-base public/ --progress port 8080
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the angular2-webpack@1.0.0 start 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\Man\AppData\Roaming\npm-cache_logs\2017-12-08T09_28_12_538Z-debug.log

@mendoncanorma
Copy link

If you have installed it locally, then try the below command from your root directory i.e. from the directory where your package.json exists:

node_modules.bin\webpack-dev-server --config=config/webpack.dev.js

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

3 participants