cannot not find vue-cli-service.js
时间: 2024-04-25 12:23:05 浏览: 145
引用\[1\]中提到,"Cannot find module 'E:\@vue\cli-service\bin\vue-cli-service.js'"的错误提示表明在E盘下找不到这个模块。正确的路径应该是在E:\\[项目文件\]\node_modules\.bin\@vue\cli-service\bin\vue-cli-service.js'。引用\[2\]和引用\[3\]提供了两种解决方案。方案一是删除vue项目中的node_modules文件夹,然后在命令行中运行npm install命令。如果方案一不起效果,可以尝试方案二。方案二是打开项目目录下的node_modules\.bin\vue-cli-service.cmd文件,并将其中的内容修改为正确的路径。然后在命令行中运行npm run serve命令即可。
#### 引用[.reference_title]
- *1* [vue创建项目运行报错Error: Cannot find module 'E:\@vue\cli-service\bin\vue-cli-service.js'](https://blog.csdn.net/m0_46438177/article/details/104993979)[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^control_2,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* [vue项目关于:Error: Cannot find module ‘D:\@vue\cli-service\bin\vue-cli-service.js‘的解决方案](https://blog.csdn.net/qq135595696/article/details/118977818)[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^control_2,239^v3^insert_chatgpt"}} ] [.reference_item]
- *3* [Vue Cli报错,Error: Cannot find module ‘@vue\cli-service\bin\vue-cli-service.js](https://blog.csdn.net/u012597989/article/details/120991185)[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^control_2,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]