Webpack-dev-server’ is not an internal or external command, nor is it a runnable program or batch file. How?

  node.js, question

图片描述

This is an error message
Another error occurred when I tried “cnpm install”
May I ask what causes this? How?

It’s usually yoursnode_modulesOr in package.jsonscriptsCommand execution is not uniform.
That is, some are usefulcnpmSome are usefulnpmGo ahead.

  1. Delete yoursnode_modulesFolder
  2. Set upnpmFor Taobao Mirror
  3. Unified usenpmTo execute all instructions,npm installOrnpm run dev