[英]My react app does not start when I write npm start and get this error can anyone please help me I am new to react. I am using Acode(Editor) and termux
npm start npm 开始
npm ERR! npm 错误! code ENOENT
代码ENOENT
npm ERR! npm 错误! syscall open
系统调用打开
npm ERR! npm 错误! path
小路
/data/data/com.termux/files/home/package.json /data/data/com.termux/files/home/package.json
npm ERR! npm 错误! errno -2
错误号-2
npm ERR! npm 错误! enoent ENOENT: no such file or directory, open '/data/data/com.termux/files/home/package.json'
enoent ENOENT:没有这样的文件或目录,打开'/data/data/com.termux/files/home/package.json'
npm ERR! npm 错误! enoent This is related to npm not being able to find a file.
enoent 这与 npm 找不到文件有关。 npm ERR!
npm 错误! enoent
恩恩
npm ERR! npm 错误! A complete log of this run can be found in: npm ERR!
可以在以下位置找到此运行的完整日志:npm ERR! /data/data/com.termux/files/home/.npm/_logs/2022-07-07T10_43_10_803Z-debug-0.log ~ $
/data/data/com.termux/files/home/.npm/_logs/2022-07-07T10_43_10_803Z-debug-0.log ~ $
Maybe your problem's solution is written in this answer .也许您的问题的解决方案写在这个答案中。 Though that was a different case(probably) and here you didn't explained your problem much in the description, but I think the error message:
no such file or directory
described everything which simply means index.js
or any file that you want to run with npm
or node
isn't in the current directory.虽然这是一个不同的情况(可能)并且在这里你没有在描述中解释你的问题,但我认为错误消息:
no such file or directory
描述了所有内容,这只是意味着index.js
或任何你想要的文件使用npm
或node
不在当前目录中。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.