Error Reporting: webpack-dev-server is not an internal or external command
wrong reason:
When executing the command: npm run dev actual implementation is package.json configuration:
Possible causes: No installation webpack-dev-server
Global Installation: (generally no problem globally after installation) npm install webpack-dev-server -g
Local installation: npm install webpack-dev-server --save-dev
At this time there is a new bug report
'cross-env' is not an internal or external command, operable program
or batch file.
npm install --save-dev cross-env
If you find it necessary to install so many dependencies, you need to immediately look at the author's instructions.
Because there may be only "npm install" on it.
Reference: https: //segmentfault.com/q/1010000006939078
Error Reporting: webpack-dev-server is not an internal or external command
wrong reason:
When executing the command: npm run dev actual implementation is package.json configuration:
Possible causes: No installation webpack-dev-server
Global Installation: (generally no problem globally after installation) npm install webpack-dev-server -g
Local installation: npm install webpack-dev-server --save-dev
At this time there is a new bug report
'cross-env' is not an internal or external command, operable program
or batch file.
npm install --save-dev cross-env
If you find it necessary to install so many dependencies, you need to immediately look at the author's instructions.
Because there may be only "npm install" on it.
Reference: https: //segmentfault.com/q/1010000006939078