J
J
justjeckill19932019-03-10 23:39:53
npm
justjeckill1993, 2019-03-10 23:39:53

"webpack-dev-server" is not an internal or external command, operable program, or batch file. How to fix the error?

Good day to all! I decided to learn Webpack, installed it locally, registered package.json and webpack.config.js, when everything was ready, I typed npm start on the command line. Then this crashes:
"webpack-dev-server" is not an internal or external
command, operable program, or batch file.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: `webpack-dev-server`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] 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\Leckill1993\AppData\Roaming\npm-cache\_logs\2019-03-10T18_04_25_098Z-debug.log
Googling, I came across an advice to reinstall webpack globally, it didn't work, but when I removed locale(1) and installed globally (2) both times such curious lines flew out, maybe they will help in solving the problem:
1) npm WARN [email protected] requires a peer of [email protected] but none is installed. You must install peer dependencies yourself
2)npm WARN [email protected] requires a peer of [email protected]^4.0.0 but none is installed. You must install peer dependencies yourself.
Please help, google something that would solve the problem, and failed (

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question