报错
PS E:codevuevue-demo> npm run dev
> vue-demo@1.0.0 dev E:codevuevue-demo
> webpack-dev-server
internal/modules/cjs/loader.js:983
throw err;
^
Error: Cannot find module 'webpack-cli/bin/config-yargs'
版本冲突
手动修改最终配置(修改版本,重新 npm install):
或者可以一起安装(没有尝试)
参考:https://blog.csdn.net/sd19871122/article/details/108743334