运行npm run dev提示报错: 解决办法: 依次输入以下命令: npm uninstall webpack npm uninstall webpack-cli npm uninstall webpack-dev-server npm i webpack@4.32.2 -D npm i webpack-cli@3.3.2 -D npm i webpack-dev-server@3.5.1 -D 尝试运行: npm run dev 成功解决!