'webpack-dev-server' is not an internal or external command, nor is it a runnable program, what should I do?

webpacck-dev-server --inline --progress --config build/webpack.dev.conf.js

If the above error occurs when you run npm run dev and npm start, then

direct installation

​npm install webpack-dev-server --save-dev​

just fine

Guess you like

Origin blog.csdn.net/qq_37860634/article/details/124070689