npm ERR! Missing script: "dev" npm ERR! npm ERR! To see a list of scripts, run: npm ERR! npm run npm ERR! A complete log of this run can
时间: 2023-08-27 22:17:05 浏览: 166
运行 npm run dev 报错
根据你提供的引用内容,报错信息显示缺少名为"dev"的脚本。在引用中,可以看到"dev"脚本是通过运行"webpack-dev-server --inline --progress --config build/webpack.dev.conf.js"来启动的。因此,解决该错误的方法是确保在项目的package.json文件中存在名为"dev"的脚本,并且该脚本的命令与引用中提供的相同。<span class="em">1</span><span class="em">2</span>
#### 引用[.reference_title]
- *1* [Vue 使用npm run dev 启动报错时:npm ERR! Missing script: “dev](https://blog.csdn.net/weixin_40230655/article/details/126236965)[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^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *2* [npm ERR! missing script: dev](https://blog.csdn.net/f10495703/article/details/118889586)[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^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文