'Webpack-dev-server' is not an internal or external command, operable program or batch file. Solution

Cnpm run dev execution error:

 

 Solution:

    Now use webpack To install webpack-cli package at the same time, you can call webpack and webpack-dev-server these commands.
    cnpm install webpack webpack-dev-server webpack-cli --save-dev

  

 

 

 

Guess you like

Origin www.cnblogs.com/wangyfax/p/12289636.html