简体   繁体   English

当我编写 npm start 并收到此错误时,我的反应应用程序没有启动,任何人都可以帮助我,我是新来的反应。 我正在使用 Acode(Editor) 和 termux

[英]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或任何你想要的文件使用npmnode不在当前目录中。

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

相关问题 我有这个问题当我尝试创建新的反应文件夹时我有 npm 问题有人可以回答我吗 - am having this problem a when I try to create new react folder am having npm problem can someone answer me please React 新手,我在 React 中遇到了这个启动错误 - New to React i am facing this start error in react 任何人都可以帮助我安装 React 吗? 我收到了这个奇怪的错误 - Can anyone help me with React Installation? I am getting this weird error 我正在尝试使用yeoman和骨干创建示例应用程序,但显示一些错误有人可以帮助我吗? - I am trying to create sample app using yeoman and backbone but display some error can anyone help me? 对 React 应用程序使用“npm start 命令”时出现错误 - I am getting error while using "npm start command for React application 当我在 cmd 中使用 npm start 启动我的反应应用程序时,我收到以下错误 - when I use npm start in cmd to start my react app iam getting the following error 当我尝试使用npm start命令运行React App时出错 - Error when I try run a React App with npm start command 我正在尝试这个,但我在 npm start 中遇到错误 - I am trying this but i get error in npm start 为什么当我尝试运行我的应用程序时“npm start”会给我错误? - Why does “npm start” give me error when i try run my app? 在执行npm start时出现此错误 - Getting this error when I am doing npm start
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM