android - React Native 应用程序在启动第一个应用程序时显示一些错误

标签 android react-native terminal

我是React Native新手。我按照 Facebook React-native 网站 指导的所有步骤进行操作。但我在启动应用程序时遇到这些问题。请帮助我如何解决这个问题。它在启动我的第一个应用程序时显示一些警告。

错误是:

npm WARN @babel/<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="42322e37252b2c6f3630232c31242d302f6f322330232f273627303102756c726c726f202736236c7672" rel="noreferrer noopener nofollow">[email protected]</a> requires a peer of @babel/<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="f794988592b7c0d9c7d9c7da95928396d9c3c7" rel="noreferrer noopener nofollow">[email protected]</a> but none is installed. You must install peer dependencies yourself.
npm WARN @babel/<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="cabaa6bfada3a4e7beb8aba4b9aca5b8a7e7b9bab8afabae8afde4fae4fae7a8afbeabe4fefa" rel="noreferrer noopener nofollow">[email protected]</a> requires a peer of @babel/<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="5b3834293e1b6c756b756b76393e2f3a756f6b" rel="noreferrer noopener nofollow">[email protected]</a> but none is installed. You must install peer dependencies yourself.
npm WARN @babel/<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="dbabb7aebcb2b5f6afa9bab5a8bdb4a9b6f6bdb4a9f6b4bd9becf5ebf5ebf6b9beafbaf5efeb" rel="noreferrer noopener nofollow">[email protected]</a> requires a peer of @babel/<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="67040815022750495749574a05021306495357" rel="noreferrer noopener nofollow">[email protected]</a> but none is installed. You must install peer dependencies yourself.
npm WARN @babel/<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="83f3eff6e4eaedaef7f1e2edf0e5ecf1eeaee0eceef3f6f7e6e7aef3f1ecf3e6f1f7eae6f0c3b4adb3adb3aee1e6f7e2adb7b3" rel="noreferrer noopener nofollow">[email protected]</a> requires a peer of @babel/<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="22414d504762150c120c120f404756430c1612" rel="noreferrer noopener nofollow">[email protected]</a> but none is installed. You must install peer dependencies yourself.
npm WARN @babel/<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="a3d3cfd6c4cacd8ed7d1c2cdd0c5ccd1ce8ed1c6c4c6cdc6d1c2d7ccd1e3948d938d938ec1c6d7c28d9793" rel="noreferrer noopener nofollow">[email protected]</a> requires a peer of @babel/<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="4f2c203d2a0f78617f617f622d2a3b2e617b7f" rel="noreferrer noopener nofollow">[email protected]</a> but none is installed. You must install peer dependencies yourself.
npm WARN @babel/<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="32425e47555b5c1f4640535c41545d405f1f415a5d40465a535c561f42405d425740465b574172051c021c021f505746531c0602" rel="noreferrer noopener nofollow">[email protected]</a> requires a peer of @babel/<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="17747865725720392739273a75726376392327" rel="noreferrer noopener nofollow">[email protected]</a> but none is installed. You must install peer dependencies yourself.
npm WARN @babel/<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="57273b22303e397a23253639243138253a7a23323a273b3623327a3b3e233225363b241760796779677a35322336796367" rel="noreferrer noopener nofollow">[email protected]</a> requires a peer of @babel/<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="ceada1bcab8ef9e0fee0fee3acabbaafe0fafe" rel="noreferrer noopener nofollow">[email protected]</a> but none is installed. You must install peer dependencies yourself.
npm WARN @babel/<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="dbabb7aebcb2b5f6a8a2b5afbaa3f6b8b7baa8a8f6aba9b4abbea9afb2bea89becf5ebf5ebf6b9beafbaf5efeb" rel="noreferrer noopener nofollow">[email protected]</a> requires a peer of @babel/<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="60030f120520574e504e504d020514014e5450" rel="noreferrer noopener nofollow">[email protected]</a> but none is installed. You must install peer dependencies yourself.
npm WARN @babel/<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="88f8e4fdefe1e6a5fbf1e6fce9f0a5e7eae2edebfca5faedfbfca5fbf8faede9ecc8bfa6b8a6b8a5eaedfce9a6bcb8" rel="noreferrer noopener nofollow">[email protected]</a> requires a peer of @babel/<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="ef8c809d8aafd8c1dfc1dfc28d8a9b8ec1dbdf" rel="noreferrer noopener nofollow">[email protected]</a> but none is installed. You must install peer dependencies yourself.
npm WARN @babel/<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="bdcdd1c8dad4d390cec4d3c9dcc590dbd1d2cafd8a938d938d90dfd8c9dc93898d" rel="noreferrer noopener nofollow">[email protected]</a> requires a peer of @babel/<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="02616d706742352c322c322f606776632c3632" rel="noreferrer noopener nofollow">[email protected]</a> but none is installed. You must install peer dependencies yourself.
npm WARN @babel/<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="2e5e425b494740035d57405a4f5603445d566e19001e001e034c4b5a4f001a1e" rel="noreferrer noopener nofollow">[email protected]</a> requires a peer of @babel/<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="13707c617653243d233d233e717667723d2723" rel="noreferrer noopener nofollow">[email protected]</a> but none is installed. You must install peer dependencies yourself.
npm WARN <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="6104120d080f154c110d1406080f4c13040002154c0f001508170421524f534f50" rel="noreferrer noopener nofollow">[email protected]</a> requires a peer of eslint@^3.17.0 || ^4.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN @babel/<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="3e4e524b595750134a4c5f504d58514c53134d4a575d5547134c5b595b467e09100e100e135c5b4a5f100a0e" rel="noreferrer noopener nofollow">[email protected]</a> requires a peer of @babel/<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="89eae6fbecc9bea7b9a7b9a4ebecfde8a7bdb9" rel="noreferrer noopener nofollow">[email protected]</a> but none is installed. You must install peer dependencies yourself.
npm WARN @babel/<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="1969756c7e7077346d6b78776a7f766b74346c77707a767d7c346b7c7e7c61592e37293729347b7c6d78372d29" rel="noreferrer noopener nofollow">[email protected]</a> requires a peer of @babel/<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="1d7e726f785d2a332d332d307f78697c33292d" rel="noreferrer noopener nofollow">[email protected]</a> but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="6b0d180e1d0e051f182b5a4559455b" rel="noreferrer noopener nofollow">[email protected]</a> (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="3f594c5a495a514b4c7f0e110d110f" rel="noreferrer noopener nofollow">[email protected]</a>: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

最佳答案

您可以运行以下命令: npm install @babel/[email protected] eslint@^3.17.0 || ^4.0.0

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

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

引用文献: npm install 提示同行部门。 GitHub 公司 https://github.com/angular/angular/issues/5746 (访问日期:2018 年 4 月 22 日)。

关于android - React Native 应用程序在启动第一个应用程序时显示一些错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49965539/

相关文章:

android - 错误 : device offline

ios - react native : Voice Over (iOS) to read the new element

android - React Native Android 自定义 View 中的 "bubbling"与 "direct"事件

regex - 使用 `find` 命令查找带有 CJK 字符的文件的正则表达式是什么?

macos - 在没有终端的情况下在 osx 上启动 node.js

具有不同包名称但相同代码的 Android 应用程序未安装在一台设备上

android - 单击通知时获取 PendingIntent 事件

Android - Admob - 加载广告然后更改可见性会导致问题

javascript - 未找到 <React/RCTDefines.h> 文件

linux - 在不提示的情况下解压缩目录中的所有文件