Missing script: "serve" npm ERR! npm ERR! To see a list of scripts, run: npm ERR! npm run
时间: 2023-08-17 13:13:58 浏览: 285
根据引用\[1\]和引用\[2\]的信息,报错信息"Missing script: 'serve'"表示在运行npm run serve命令时,找不到对应的脚本。解决方法是在package.json文件中的scripts字段中查找vue-cli-service指令,并将npm run dev改为npm run serve。这样就可以解决该问题。如果还是出现问题,可以尝试运行npm run命令查看可用的脚本列表。
#### 引用[.reference_title]
- *1* *3* [碎碎念:解决npm run dev /serve 报错](https://blog.csdn.net/yxiulian/article/details/126518934)[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^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* [npm run serve启动报错npm ERR Missing script: “serve](https://blog.csdn.net/qq_52372698/article/details/124378935)[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^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文