no such file or directory, open 'C:\Users\25377\Desktop\Vue\package.json'
时间: 2023-09-16 09:11:32 浏览: 139
vue package.json
报错"no such file or directory, open 'C:\Users\25377\Desktop\Vue\package.json'"通常是因为执行npm命令时的目录不正确导致的。根据引用的分析,执行npm命令时必须在项目的根目录下执行,而不能在跟目录的父目录或子目录下执行。所以解决办法就是进入到项目的根目录下再次执行命令即可。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [【npm WARN saveError ENOENT: no such file or directory, open ‘C:\Users\xxx\package.json‘】](https://blog.csdn.net/weixin_46536395/article/details/123351443)[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_2"}}] [.reference_item style="max-width: 50%"]
- *3* [运行vue项目报错 no such file or directory, open ***\package.json](https://blog.csdn.net/qq_40269087/article/details/113618712)[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_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文