npm ERR! code ENOENT npm ERR! syscall open npm ERR! path F:\1study\博客项目\sg-blog-vue-master/package.json npm ERR! errno -4058
时间: 2023-08-24 07:15:02 浏览: 175
引用\[1\]:错误详情: E:\项目源码\idea\vue>npm run dev npm ERR! code ENOENT npm ERR! syscall open npm ERR! path E:\项目源码\idea\vue\package.json npm ERR! errno -4058 npm ERR! enoent ENOENT: no such file or directory, open 'E:\Web学习\idea\vue\package.json' npm ERR! enoent This is related to npm not being able to find a file. npm ERR! enoent npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\yang\AppData\Roaming\npm-cache_logs\2020-11-18T08_47_57_691Z-debug.log 。 引用\[2\]:npm ERR! code ENOENT npm ERR! syscall open npm ERR! errno -4058 npm ERR! enoent ENOENT: no such file 报错如下 npm ERR! code ENOENT npm ERR! syscall open npm ERR! errno -4058 npm ERR! enoent ENOENT: no such file or directory, open 'C:\Users\落笔\package npm ERR! enoent This is related to npm not being able to find a file. npm ERR! enoent 。 引用\[3\]:出现这种问题一般是文件不对,找不到相应的文件。首先可能是路径不对,一定是要在项目的根路径下进行运行。\[3\] Vue的启动命令一般为npm run dev / npm run serve,也有可能是因为版本不同命令不同(Vue2默认为npm run dev,Vue3默认为npm run serve)。如果你只想运行serve或dev,只需要将package.json里面的命令修改为对应的命令。另外,如果是安装其他包时报错,很有可能是安装的版本太高,不匹配,可以尝试安装对应版本的包。\[3\]
#### 引用[.reference_title]
- *1* [npm ERR! code ENOENT npm ERR! syscall open 错误解决 前端vue启动报错](https://blog.csdn.net/weixin_64854388/article/details/129159358)[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,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* [npm ERR! code ENOENT npm ERR! syscall open npm ERR! errno -4058 npm ERR! enoent ENOENT: no such file](https://blog.csdn.net/m0_46374969/article/details/120224717)[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,239^v3^insert_chatgpt"}} ] [.reference_item]
- *3* [【 npm ERR! code ENOENT npm ERR! syscall open npm ERR!项目运行报错问题】](https://blog.csdn.net/m0_45991266/article/details/131060804)[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,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文