1.项目启动报类似下方错误
Error: Cannot find module 'webpack-cli/bin/config-yargs'
...
...
...
2.原因于解决办法
Webpack与webpack-dev-server版本不兼容
//卸载版本 cnpm uninstall webpack -g cnpm uninstall -g webpack-dev-server //安装指定版本 cnpm install webpack@3.8.0 --save-dev cnpm install webpack-dev-server@2.9.7 --save-dev