npm一个错误 npm ERR code ENOENT npm ERR syscall open
·
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,另一个可能是不在项目那一级运行,可能在上一级或者下一级
更多推荐
已为社区贡献2条内容
所有评论(0)