webpack-dev-server安装
D:\1234\工作交接\web版继电器测试工具>npm run dev
> atianapp@1.0.0 dev
> webpack-dev-server --inline --progress --config build/webpack.dev.conf.js
'webpack-dev-server' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
D:\1234\工作交接\web版继电器测试工具>npm install -g webpack-dev-server
[webpack-cli] You need to install 'webpack-dev-server' for running 'webpack serve'.
Error: Cannot find module 'webpack-dev-server'
Require stack:
- D:\nodejs\node_global\node_modules\webpack-cli\node_modules\@webpack-cli\serve\lib\index.js
- D:\nodejs\node_global\node_modules\webpack-cli\lib\webpack-cli.js
- D:\nodejs\node_global\node_modules\webpack-cli\lib\bootstrap.js
- D:\nodejs\node_global\node_modules\webpack-cli\bin\cli.js
- C:\Users\lyd\AppData\Roaming\npm\node_modules\webpack-dev-server\bin\webpack-dev-server.js
D:\1234\工作交接\web版继电器测试工具>npm install -g webpack-dev-server