"dev": "webpack-dev-server --inline --progress --config build/webpack.dev.conf.js",
时间: 2023-11-30 13:05:20 浏览: 82
"dev": "webpack-dev-server --inline --progress --config build/webpack.dev.conf.js" 是一个在Vue项目中运行开发环境的命令。 这个命令使用了webpack-dev-server来启动一个本地开发服务器,用于实时编译和热重载。--inline选项将webpack的构建消息和编译错误显示在浏览器中,--progress选项显示编译进度条,--config选项指定了webpack的配置文件路径。这个命令可以在你的package.json文件的scripts字段中找到,并被npm run dev命令调用。 如果你在运行npm run dev时遇到报错,可能是因为webpack-dev-server版本存在问题。可以尝试通过安装低版本的webpack-dev-server来解决这个问题。你可以首先删除node_modules目录,然后重新运行npm install命令来重新安装依赖包。或者你也可以使用npm uninstall webpack-dev-server命令卸载当前的webpack-dev-server版本,然后使用npm install webpack-dev-server@2.9.7命令下载指定的低版本。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [Vue运行报错webpack-dev-server --inline --progress --config build/webpack.dev.conf.js](https://blog.csdn.net/qq_18671415/article/details/109306424)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *2* [vue-cli项目根据线上环境分别打出测试包和生产包](https://download.csdn.net/download/weixin_38643141/13588313)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *3* [npm报错`webpack-dev-server --inline --progress --config build/webpack.dev.conf.js`](https://blog.csdn.net/GongWei_/article/details/107907911)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
[ .reference_list ]
阅读全文