为什么t npx react-niit init myapp不起作用,而不会创建一个反应本机项目?

发布于 2025-01-24 22:08:23 字数 3974 浏览 0 评论 0 原文

我正在尝试使用 npx React-NITINE< myApp> 启动应用程序,但它没有完成构建。 两天前,这起作用了,今天没有。 我已经搜索了想法,但是一段时间后我看不到类似的想法

,一切都停止了,控制台显示以下

iOS和Android文件夹并不完整,当我尝试运行iOS或Android我会遇到错误。

搜索我发现了与忽略启动有关的文章,但是我不明白为什么这突然发生在我身上,两天前一切都在起作用,

这是什么意思,为什么? 谢谢

错误与此 模块。预期版本“ ^12.13.0 || ^14.15.0 || ^16.10.0 ||

= 17.0.0“。got” 16.6.0”错误找到了不兼容的模块。信息访问用于有关此的文档 命令。 /卷/miguelapps/react-native/pruebas/carteta罪 título/senderos/node_modules/Metro-Hermes-compiler/src/emhermesc.js:77 投掷前; ^

RuntimeError:Aport(错误:命令失败:Yarn add -d @babel/core @babel/runtime @react-native-community/eslint-config eslint开玩笑 Babel-Jest Metro-Reacter-Native-Babel-Preset

//////////////////////////////

警告模式[“@babel/core@^7.17.9”]试图在 同一目的地 “/users/miguelito/library/caches/yarn/v6/npm-comnpm-babel-core-7.17.9-6-6bae81a06d95f4f4d0dec5bb9d74bbbc1f58bbbc1f58bbabdcfe-integrity/nodeegrity/node_modules/node_modules/node_modules/node_modules/@babbabelel/core/core em 作为模式 [“@@babel/core@^7.14.0”,“@babel/core@^7.14.0”,“@babel/core@^7.14.0”,“@@babel/core@core@^7.13.16”,“ @babel/core@^7.14.0“,”@babel/core@^7.14.0“,”@babel/core@^7.14.0“,”@@babel/core@^7.11.6“,”@babel /core@^7.11.6“,”@babel/core@^7.12.3",@@babel/core@^7.11.6",@@babel/core@^7.14.0”]。 这可能导致非确定性行为跳过。警告 模式[“@babel/runtime@^7.17.9”]试图在同一 目的地 "/Users/miguelito/Library/Caches/Yarn/v6/npm-@babel-runtime-7.17.9-d19fbf802d01a8cb6cf053a64e472d42c434ba72-integrity/node_modules/@babel/runtime" 作为模式[“@babel/runtime@^7.8.4”]。这可能导致 非确定性行为,跳过。

I'm trying to start an App with npx react-native init <MyApp> but it doesn't finish building.
Two days ago this worked and today it doesn't.
I've googled for ideas, but I don't see anything like it

After a while building and downloading dependencies, everything stops and the console shows the following

The iOS and Android folders are not quite complete, and when I try to run iOS or Android I get errors.

Searching I found articles related to ignore-engines, but I don't understand why this happens to me suddenly, when 2 days ago everything was working

What does this error mean and why?
Thank you

error [email protected]: The engine "node" is incompatible with this
module. Expected version "^12.13.0 || ^14.15.0 || ^16.10.0 ||

=17.0.0". Got "16.6.0" error Found incompatible module. info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this
command. /Volumes/MIguelApps/REACT-NATIVE/pruebas/carpeta sin
título/Senderos/node_modules/metro-hermes-compiler/src/emhermesc.js:77
throw ex;
^

RuntimeError: abort(Error: Command failed: yarn add -D @babel/core
@babel/runtime @react-native-community/eslint-config eslint jest
babel-jest metro-react-native-babel-preset
[email protected]). Build with -s ASSERTIONS=1 for more info.
at process.abort (/Volumes/MIguelApps/REACT-NATIVE/pruebas/carpeta sin
título/Senderos/node_modules/metro-hermes-compiler/src/emhermesc.js:402:15)
at process.emit (node:events:394:28)
at emit (node:internal/process/promises:136:22)
at processPromiseRejections (node:internal/process/promises:242:25)
at processTicksAndRejections (node:internal/process/task_queues:97:32)

/////////////////////////

warning Pattern ["@babel/core@^7.17.9"] is trying to unpack in the
same destination
"/Users/miguelito/Library/Caches/Yarn/v6/npm-@babel-core-7.17.9-6bae81a06d95f4d0dec5bb9d74bbc1f58babdcfe-integrity/node_modules/@babel/core"
as pattern
["@babel/core@^7.14.0","@babel/core@^7.14.0","@babel/core@^7.14.0","@babel/core@^7.13.16","@babel/core@^7.14.0","@babel/core@^7.14.0","@babel/core@^7.14.0","@babel/core@^7.11.6","@babel/core@^7.11.6","@babel/core@^7.12.3","@babel/core@^7.11.6","@babel/core@^7.14.0"].
This could result in non-deterministic behavior, skipping. warning
Pattern ["@babel/runtime@^7.17.9"] is trying to unpack in the same
destination
"/Users/miguelito/Library/Caches/Yarn/v6/npm-@babel-runtime-7.17.9-d19fbf802d01a8cb6cf053a64e472d42c434ba72-integrity/node_modules/@babel/runtime"
as pattern ["@babel/runtime@^7.8.4"]. This could result in
non-deterministic behavior, skipping.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

打小就很酷 2025-01-31 22:08:23

也有同样的问题,并升级到最新节点对我有用。

had same issue and upgrading to latest node worked for me.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文