简体   繁体   English

成功安装 create-react-app 后 Npm 启动将无法正常工作。 错误代码 Enoent 错误编号 -4058

[英]Npm start won't work after successfully installing create-react-app. Error code Enoent Error number -4058

Whenever I try to pull up my create-react-app on VS code the npm start won't work.每当我尝试在 VS 代码上启动我的 create-react-app 时,npm 启动将无法正常工作。 I get this error message.我收到此错误消息。 Please help.请帮忙。

$ npm start npm ERR: path C.\Users\Jay\Desktop\NucampFolder\3-React\package:json npm ERR, code ENOENT npm ERR: errno -4058 npm ERR. $ npm start npm ERR: path C.\Users\Jay\Desktop\NucampFolder\3-React\package:json npm ERR, code ENOENT npm ERR: errno -4058 npm ERR. syscall open npm ERR.系统调用打开 npm ERR。 enoent ENOENT: no such file or directory, open 'C:\Users\Jay\Desktop\NucampFolder\3-React\package.json' npm ERR! enoent ENOENT:没有这样的文件或目录,打开 'C:\Users\Jay\Desktop\NucampFolder\3-React\package.json' npm 错误! 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\Jay\AppData\Roaming\npm-cache_logs\2020-07-02T10_23_42_980Z-debug.log C:\Users\Jay\AppData\Roaming\npm-cache_logs\2020-07-02T10_23_42_980Z-debug.log

Make sure you run npm start from the folder where the package.json is located.确保从 package.json 所在的文件夹开始运行 npm。 You might need to cd into that directory您可能需要 cd 进入该目录

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM