Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/201.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android React本机应用在启动第一个应用时显示一些错误_Android_React Native_Terminal - Fatal编程技术网

Android React本机应用在启动第一个应用时显示一些错误

Android React本机应用在启动第一个应用时显示一些错误,android,react-native,terminal,Android,React Native,Terminal,我是个新来的本地人。我遵循了Facebook react本地网站指导的所有步骤。但我在启动我的应用程序时遇到了这些问题。请帮助我如何解决此问题。它在启动我的第一个应用程序时显示一些警告 错误是: npm WARN @babel/plugin-transform-parameters@7.0.0-beta.40 requires a peer of @babel/core@7.0.0-beta.40 but none is installed. You must install peer depe

我是个新来的本地人。我遵循了Facebook react本地网站指导的所有步骤。但我在启动我的应用程序时遇到了这些问题。请帮助我如何解决此问题。它在启动我的第一个应用程序时显示一些警告

错误是:

npm WARN @babel/plugin-transform-parameters@7.0.0-beta.40 requires a peer of @babel/core@7.0.0-beta.40 but none is installed. You must install peer dependencies yourself.
npm WARN @babel/plugin-transform-spread@7.0.0-beta.40 requires a peer of @babel/core@7.0.0-beta.40 but none is installed. You must install peer dependencies yourself.
npm WARN @babel/plugin-transform-for-of@7.0.0-beta.40 requires a peer of @babel/core@7.0.0-beta.40 but none is installed. You must install peer dependencies yourself.
npm WARN @babel/plugin-transform-computed-properties@7.0.0-beta.40 requires a peer of @babel/core@7.0.0-beta.40 but none is installed. You must install peer dependencies yourself.
npm WARN @babel/plugin-transform-regenerator@7.0.0-beta.40 requires a peer of @babel/core@7.0.0-beta.40 but none is installed. You must install peer dependencies yourself.
npm WARN @babel/plugin-transform-shorthand-properties@7.0.0-beta.40 requires a peer of @babel/core@7.0.0-beta.40 but none is installed. You must install peer dependencies yourself.
npm WARN @babel/plugin-transform-template-literals@7.0.0-beta.40 requires a peer of @babel/core@7.0.0-beta.40 but none is installed. You must install peer dependencies yourself.
npm WARN @babel/plugin-syntax-class-properties@7.0.0-beta.40 requires a peer of @babel/core@7.0.0-beta.40 but none is installed. You must install peer dependencies yourself.
npm WARN @babel/plugin-syntax-object-rest-spread@7.0.0-beta.40 requires a peer of @babel/core@7.0.0-beta.40 but none is installed. You must install peer dependencies yourself.
npm WARN @babel/plugin-syntax-flow@7.0.0-beta.40 requires a peer of @babel/core@7.0.0-beta.40 but none is installed. You must install peer dependencies yourself.
npm WARN @babel/plugin-syntax-jsx@7.0.0-beta.40 requires a peer of @babel/core@7.0.0-beta.40 but none is installed. You must install peer dependencies yourself.
npm WARN eslint-plugin-react-native@3.2.1 requires a peer of eslint@^3.17.0 || ^4.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN @babel/plugin-transform-sticky-regex@7.0.0-beta.40 requires a peer of @babel/core@7.0.0-beta.40 but none is installed. You must install peer dependencies yourself.
npm WARN @babel/plugin-transform-unicode-regex@7.0.0-beta.40 requires a peer of @babel/core@7.0.0-beta.40 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.0 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.0: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

可以运行以下命令: npm安装@babel/core@7.0.0-beta.40 eslint@^3.17.0 | | | ^4.0.0

如果缺少任何其他对等点,可以运行npm安装,然后运行缺少的对等依赖项

在每个对等点之间添加一个空格

参考资料: npm安装对对等DEP的投诉。Github公司。
已于2018年4月22日访问。

我的应用程序启动时也会出现红屏。为什么会这样??这是由于缺少对等依赖关系造成的吗???@Haseeb屏幕上的错误消息是什么?完全是红色屏幕,出现此错误:无法从资产“index.android.bundle”加载脚本。确保您的包已正确打包,或者您正在运行打包服务器。如何添加此命令??我是否应该运行终端“以管理员身份运行”??