[英]When I do command as "npm install" it comes npm ERR code ENOENT npm ERR
npm ERR: code ENOENT npm ERR. npm 错误:代码 ENOENT npm 错误。 syscall open npm ERR: path C,\Users\hp\Downloads\Direct-messaging-app-app/package:json npm ERR.
系统调用打开 npm ERR:路径 C,\Users\hp\Downloads\Direct-messaging-app-app/package:json npm ERR。 errno -4058 npm ERR.
错误号 -4058 npm 错误。 enoent ENOENT: no such file or directory, open 'C:\Users\hp\Downloads\Direct-messaging-app-app\package.json' npm ERR!
enoent ENOENT:没有这样的文件或目录,打开 'C:\Users\hp\Downloads\Direct-messaging-app-app\package.json' npm ERR! enoent This is related to npm not being able to find a file.
enoent 这与 npm 找不到文件有关。 npm ERR!
npm 错误! enoent
优雅的
npm ERR: A complete log of this run can be found in: npm ERR. npm ERR:此运行的完整日志可在以下位置找到:npm ERR。 C:\Users\hp\AppData\Local\npm-cache_logs\2022-11-24T06_46_21_615Z-debug-0.log
C:\Users\hp\AppData\Local\npm-cache_logs\2022-11-24T06_46_21_615Z-debug-0.log
this is the problem, because of this I cant command npm Install Npm这就是问题所在,因此我无法命令 npm 安装 Npm
Are you sure you in the right folder??你确定你在正确的文件夹中吗? because it seems like you running the npm in Direct-messaging-app-app folder and npm not able to find the package.json file in it, that's why you getting this error I think
因为您似乎在 Direct-messaging-app-app 文件夹中运行 npm 而 npm 无法在其中找到 package.json 文件,这就是我认为出现此错误的原因
you need to be in chat-app folder or where your package.json file is, to run the npm command你需要在 chat-app 文件夹中或者你的 package.json 文件所在的位置,才能运行 npm 命令
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.