学无先后,达者为师

网站首页 编程语言 正文

npm一个错误 npm ERR code ENOENT npm ERR syscall open

作者:averylllo 更新时间: 2022-01-10 编程语言
npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path D:\Sys\package.json
npm ERR! errno -4058
npm ERR! enoent ENOENT: no such file or directory, open 'D:\Sys\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\Lenovo\AppData\Roaming\npm-cache\_logs\2021-11-02T08_47_57_691Z-debug.log

原因就是找不到package.json
其中可能是误删了package.json,另一个可能是不在项目那一级运行,可能在上一级或者下一级

原文链接:https://blog.csdn.net/averyluo/article/details/121118297

栏目分类
最近更新