npm 错误!代码 ENOENT 反应,npm install 不起作用
当我在项目文件夹中尝试 npm install
时,它显示这样的错误
npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path D:\manoj\projects\keeper-3/package.json
npm ERR! errno -4058
npm ERR! enoent ENOENT: no such file or directory, open 'D:\manoj\projects\keeper-3\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\vijay\AppData\Local\npm-cache\_logs\2022-03-01T18_05_41_278Z-debug-0.log
它的工作原理,我只是忘记了安装package.json
when I try npm install
in my project folder it shows an error like this
npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path D:\manoj\projects\keeper-3/package.json
npm ERR! errno -4058
npm ERR! enoent ENOENT: no such file or directory, open 'D:\manoj\projects\keeper-3\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\vijay\AppData\Local\npm-cache\_logs\2022-03-01T18_05_41_278Z-debug-0.log
It was a long one I've linked the log here
its working i just forgot to install package.json
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论