无法从index.js解析模块@babel/runtime/helpers/interopRequireDefault

2024-05-07

我刚刚克隆了这个存储库:反应本机纸 https://github.com/callstack/react-native-paper

但是当我在根目录上运行时:

$ yarn install

我收到以下警告:

D:\react-native-paper (master) ([email protected] /cdn-cgi/l/email-protection)
λ yarn install
yarn install v1.13.0
[1/4] Resolving packages...
warning Resolution field "[email protected] /cdn-cgi/l/email-protection" is incompatible with requested version "babel-core@^6.26.0"
warning Resolution field "[email protected] /cdn-cgi/l/email-protection" is incompatible with requested version "babel-core@^6.26.0"
warning Resolution field "[email protected] /cdn-cgi/l/email-protection" is incompatible with requested version "babel-core@^6.0.0"
warning Resolution field "[email protected] /cdn-cgi/l/email-protection" is incompatible with requested version "babel-core@^6.0.0"
warning Resolution field "[email protected] /cdn-cgi/l/email-protection" is incompatible with requested version "babel-core@^6.7.2"

然后,当我这样做时:

$ cd example
$ yarn install

我得到以下输出和更多警告:

yarn install v1.13.0
[1/4] Resolving packages...
warning Resolution field "[email protected] /cdn-cgi/l/email-protection" is incompatible with requested version "[email protected] /cdn-cgi/l/email-protection"
[2/4] Fetching packages...
info [email protected] /cdn-cgi/l/email-protection: The platform "win32" is incompatible with this module.
info "[email protected] /cdn-cgi/l/email-protection" is an optional dependency and failed compatibility check. Excluding it from installation.
info @expo/[email protected] /cdn-cgi/l/email-protection: The platform "win32" is incompatible with this module.
info "@expo/[email protected] /cdn-cgi/l/email-protection" is an optional dependency and failed compatibility check. Excluding it from installation.
info @expo/[email protected] /cdn-cgi/l/email-protection: The platform "win32" is incompatible with this module.
info "@expo/[email protected] /cdn-cgi/l/email-protection" is an optional dependency and failed compatibility check. Excluding it from installation.
info @expo/[email protected] /cdn-cgi/l/email-protection: The CPU architecture "x64" is incompatible with this module.
info @expo/ng[email protected] /cdn-cgi/l/email-protection: The platform "win32" is incompatible with this module.
info "@expo/[email protected] /cdn-cgi/l/email-protection" is an optional dependency and failed compatibility check. Excluding it from installation.
info @expo/[email protected] /cdn-cgi/l/email-protection: The platform "win32" is incompatible with this module.
info "@expo/[email protected] /cdn-cgi/l/email-protection" is an optional dependency and failed compatibility check. Excluding it from installation.
info @expo/[email protected] /cdn-cgi/l/email-protection: The CPU architecture "x64" is incompatible with this module.
info @expo/[email protected] /cdn-cgi/l/email-protection: The platform "win32" is incompatible with this module.
info "@expo/[email protected] /cdn-cgi/l/email-protection" is an optional dependency and failed compatibility check. Excluding it from installation.
info @expo/[email protected] /cdn-cgi/l/email-protection: The platform "win32" is incompatible with this module.
info "@expo/[email protected] /cdn-cgi/l/email-protection" is an optional dependency and failed compatibility check. Excluding it from installation.
info @expo/[email protected] /cdn-cgi/l/email-protection: The CPU architecture "x64" is incompatible with this module.
info @expo/[email protected] /cdn-cgi/l/email-protection: The platform "win32" is incompatible with this module.
info "@expo/[email protected] /cdn-cgi/l/email-protection" is an optional dependency and failed compatibility check. Excluding it from installation.
info @expo/[email protected] /cdn-cgi/l/email-protection: The CPU architecture "x64" is incompatible with this module.
info @expo/[email protected] /cdn-cgi/l/email-protection: The platform "win32" is incompatible with this module.
info "@expo/[email protected] /cdn-cgi/l/email-protection" is an optional dependency and failed compatibility check. Excluding it from installation.
info @expo/[email protected] /cdn-cgi/l/email-protection: The CPU architecture "x64" is incompatible with this module.
info @expo/[email protected] /cdn-cgi/l/email-protection: The platform "win32" is incompatible with this module.
info "@expo/[email protected] /cdn-cgi/l/email-protection" is an optional dependency and failed compatibility check. Excluding it from installation.
info @expo/[email protected] /cdn-cgi/l/email-protection: The platform "win32" is incompatible with this module.
info "@expo/[email protected] /cdn-cgi/l/email-protection" is an optional dependency and failed compatibility check. Excluding it from installation.
info @expo/[email protected] /cdn-cgi/l/email-protection: The CPU architecture "x64" is incompatible with this module.
info "@expo/[email protected] /cdn-cgi/l/email-protection" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
warning " > [email protected] /cdn-cgi/l/email-protection" has unmet peer dependency "prop-types@^15.0.0".
warning " > @expo/[email protected] /cdn-cgi/l/email-protection" has unmet peer dependency "expo-font@^1.0.0".
warning "expo > [email protected] /cdn-cgi/l/email-protection" has incorrect peer dependency "[email protected] /cdn-cgi/l/email-protection".
warning "expo > [email protected] /cdn-cgi/l/email-protection" has incorrect peer dependency "react-native@^0.44.1".
warning "expo > babel-preset-expo > @babel/[email protected] /cdn-cgi/l/email-protection" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "expo > babel-preset-expo > @babel/plugin-proposal-decorators > @babel/[email protected] /cdn-cgi/l/email-protection" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "expo > babel-preset-expo > metro-react-native-babel-preset > @babel/[email protected] /cdn-cgi/l/email-protection" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "expo > babel-preset-expo > metro-react-native-babel-preset > @babel/[email protected] /cdn-cgi/l/email-protection" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "expo > babel-preset-expo > metro-react-native-babel-preset > @babel/[email protected] /cdn-cgi/l/email-protection" has unmet peer dependency "@babel/core@^7.0.0-0". warning "expo > babel-preset-expo > metro-react-native-babel-preset > @babel/[email protected] /cdn-cgi/l/email-protection" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "expo > babel-preset-expo > metro-react-native-babel-preset > @babel/[email protected] /cdn-cgi/l/email-protection" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "expo > babel-preset-expo > metro-react-native-babel-preset > @babel/[email protected] /cdn-cgi/l/email-protection" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "expo > babel-preset-expo > metro-react-native-babel-preset > @babel/[email protected] /cdn-cgi/l/email-protection" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "expo > babel-preset-expo > metro-react-native-babel-preset > @babel/[email protected] /cdn-cgi/l/email-protection" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "expo > babel-preset-expo > metro-react-native-babel-preset > @babel/[email protected] /cdn-cgi/l/email-protection" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "expo > babel-preset-expo > metro-react-native-babel-preset > @babel/[email protected] /cdn-cgi/l/email-protection" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "expo > babel-preset-expo > metro-react-native-babel-preset > @babel/[email protected] /cdn-cgi/l/email-protection" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "expo > babel-preset-expo > metro-react-native-babel-preset > @babel/[email protected] /cdn-cgi/l/email-protection" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "expo > babel-preset-expo > metro-react-native-babel-preset > @babel/[email protected] /cdn-cgi/l/email-protection" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "expo > babel-preset-expo > metro-react-native-babel-preset > @babel/[email protected] /cdn-cgi/l/email-protection" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "expo > babel-preset-expo > metro-react-native-babel-preset > @babel/[email protected] /cdn-cgi/l/email-protection" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "expo > babel-preset-expo > metro-react-native-babel-preset > @babel/[email protected] /cdn-cgi/l/email-protection" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "expo > babel-preset-expo > metro-react-native-babel-preset > @babel/[email protected] /cdn-cgi/l/email-protection" has unmet peer dependency "@babel/core@^7.0.0-0". warning "expo > babel-preset-expo > metro-react-native-babel-preset > @babel/[email protected] /cdn-cgi/l/email-protection" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "expo > babel-preset-expo > metro-react-native-babel-preset > @babel/[email protected] /cdn-cgi/l/email-protection" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "expo > babel-preset-expo > metro-react-native-babel-preset > @babel/[email protected] /cdn-cgi/l/email-protection" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "expo > babel-preset-expo > metro-react-native-babel-preset > @babel/[email protected] /cdn-cgi/l/email-protection" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "expo > babel-preset-expo > metro-react-native-babel-preset > @babel/[email protected] /cdn-cgi/l/email-protection" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "expo > babel-preset-expo > metro-react-native-babel-preset > @babel/[email protected] /cdn-cgi/l/email-protection" has unmet peer dependency "@babel/core@^7.0.0-0".warning "expo > babel-preset-expo > metro-react-native-babel-preset > @babel/[email protected] /cdn-cgi/l/email-protection" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "expo > babel-preset-expo > metro-react-native-babel-preset > @babel/[email protected] /cdn-cgi/l/email-protection" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "expo > babel-preset-expo > metro-react-native-babel-preset > @babel/plugin-proposal-class-properties > @babel/[email protected] /cdn-cgi/l/email-protection" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "expo > babel-preset-expo > metro-react-native-babel-preset > @babel/plugin-proposal-nullish-coalescing-operator > @babel/[email protected] /cdn-cgi/l/email-protection" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "expo > babel-preset-expo > metro-react-native-babel-preset > @babel/plugin-proposal-object-rest-spread > @babel/[email protected] /cdn-cgi/l/email-protection" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "expo > babel-preset-expo > metro-react-native-babel-preset > @babel/plugin-proposal-optional-catch-binding > @babel/[email protected] /cdn-cgi/l/email-protection" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "expo > babel-preset-expo > metro-react-native-babel-preset > @babel/plugin-proposal-optional-chaining > @babel/[email protected] /cdn-cgi/l/email-protection" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "expo > babel-preset-expo > metro-react-native-babel-preset > @babel/plugin-transform-flow-strip-types > @babel/[email protected] /cdn-cgi/l/email-protection" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "expo > babel-preset-expo > metro-react-native-babel-preset > @babel/plugin-transform-react-jsx > @babel/[email protected] /cdn-cgi/l/email-protection" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "expo > babel-preset-expo > metro-react-native-babel-preset > @babel/plugin-transform-typescript > @babel/plugin-syntax-type[email protected] /cdn-cgi/l/email-protection" has unmet peer dependency "@babel/core@^7.0.0-0".

我特别注意上述警告,因为当我尝试使用(目录内:/example):

$ yarn start

我在终端上得到以下输出:

There is a new version of expo-cli available (2.6.14).
You are currently using expo-cli 2.3.8
Run `npm install -g expo-cli` to get the latest version
[23:26:13] Starting project at D:\react-native-paper\example
[23:26:23] Expo DevTools is running at http://localhost:19002
[23:26:23] Opening DevTools in the browser... (press shift-d to disable)
[23:27:19] Starting Metro Bundler on port 19001.
[23:27:32] Successfully ran `adb reverse`. Localhost URLs should work on the connected Android device.
[23:27:36] Tunnel ready.

  exp://192.168.1.194:19000

  [QR CODE HERE]

  To run the app with live reloading, choose one of:
  • Sign in as @napolev in Expo Client on Android or iOS. Your projects will automatically appear in the "Projects" tab.
  • Scan the QR code above with the Expo app (Android) or the Camera app (iOS).
  • Press a for Android emulator.
  • Press e to send a link to your phone with email/SMS.

Press ? to show a list of all available commands.
Logs for your project will appear below. Press Ctrl+C to exit.
[23:28:51] Unable to resolve "@babel/runtime/helpers/interopRequireDefault" from "..\src\index.js"
Building JavaScript bundle [=================================================================================================== ] 99%

我还在移动设备上得到以下输出:

Unable to resolve module @babel/runtime/helpers/interopRequireDefault from index.js

如下图所示:

您知道如何使该应用程序在移动设备上运行吗?

Thanks!


请尝试执行

yarn add @babel/runtime
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

无法从index.js解析模块@babel/runtime/helpers/interopRequireDefault 的相关文章

随机推荐

  • Kubernetes - 服务之间的通信

    我目前正在开发 kubernetes 集群 集群工作正常 我需要在不使用代理的情况下建立服务之间的通信 例如我有以下服务 worker app1 app2 app3 Worker 需要直接通过 SSH 登录应用程序容器并执行一些命令 在 d
  • 我知道 scipy curve_fit 可以做得更好

    我使用 python numpy scipy 来实现此算法 用于根据地形坡向和坡度对齐两个数字高程模型 DEM 用于量化冰川厚度变化的卫星高程数据集的联合配准和偏差校正 C Nuth 和 A K b doi 10 5194 tc 5 271
  • 通过交叉引用过滤库存

    我想通过交叉引用以及其他属性来自定义库存过滤 我为这样的库存项目添加了另外两个交叉引用项目 现在我想通过替代类型的替代 Id 值以任何其他形式自定义库存过滤器 谢谢你 没有简单的方法可以在不进行自定义的情况下在库存商品的备用 ID 上添加搜
  • 使用 NumPy 数组执行分组平均值和标准差

    我有一组数据 X Y 我的自变量值 X 不是唯一的 因此有多个重复值 我想输出一个新数组 其中包含 X unique 它是 X 的唯一值的列表 Y mean 与 X unique 对应的所有 Y 值的平均值 Y std X unique对应
  • 在 Angular 4 Reactive Forms 中提交时显示验证消息

    我正在使用 Angular 4 反应式表单 我想在用户单击 提交 创建帐户 按钮时显示验证错误消息 这是我正在使用的 HTML 和打字稿代码
  • 不同应用的 Admob 广告单元 ID 相同吗?

    Context 我们正在努力整合admob在我们的应用程序中 我们有 25 个应用程序 主要是动态壁纸 当我们在里面创建广告单元ID时admob 我们提供应用程序名称作为 Playstore 中我们自己的应用程序包名称之一 我们有两个活动
  • TFS 2012 .gitignore .hgignore 等效项

    在TFS 2012中 有一种新的本地工作模式 本地工作区 这是个好消息 没有 签出 文件 使用 VS 以外的程序中的文件时 不会再出现只读文件和问题 不再有 获取最新 实际上并未获取最新的情况 但这也意味着我需要一种方法来告诉 TFS 在监
  • 类型错误:无法读取未定义的属性“getters”

    我正在尝试测试一个引用 Vuex 商店的基本 Vue 组件 我以为我遵循了 Vue 的例子 https vue test utils vuejs org guides using with vuex html mocking getters
  • 代码::块 - 警告:GDB:无法设置控制终端:不允许操作

    我已经通过官方存储库在 Ubuntu 14 04 中安装了 Code Blocks 13 12 当我编译时 一切正常 但是当我调试时 shell 中会显示以下消息 警告 GDB 无法设置控制终端 操作不正确 允许的 程序执行到断点 但当我执
  • 在c中生成直方图

    我一直坚持在 C 中创建这个直方图 问题是任务是计算每个用户输入发生的频率 对于 1 0 6 1 5 0 7 9 0 7 gt 有 3x 0 2x 1 等 然后 必须将出现次数转换为星号 而不是出现次数 我想我已经完成了第一步和第三步 但我
  • 检测 UITextField 的焦点变化

    我正在尝试设置当键盘隐藏并出现在文本字段中时视图向上移动的动画 并且它工作得很好 但是当焦点从一个文本字段移动到另一个文本字段时 它不起作用因为键盘已经显示了 在 viewDidLoad 中 我注册了以下内容 NSNotificationC
  • Electron Autoupdater 与私有 GitHub 存储库?

    我已经使用 PRIVATE GitHub Repository 作为发布电子应用程序的提供者实现了 Electron AutoUpdater 现在 我可以使用 GitHub 存储库发布它 但是每当 AutoUpdater 尝试从 GitHu
  • HTML5 Canvas 避免任何子像素渲染

    As seen here https stackoverflow com questions 7017998 html 5 canvas avoid fill behaviour on overlap我在画布中的亚像素精度方面遇到了一些问题
  • git-http-backend 与 AuthzUnixGroup 无法正常工作

    我正在尝试在 CentOS 6 机器上的 Apache 2 2 上设置一个 git 存储库 并安装了 git 我尝试过许多不同的方向 但我却不知所措 我目前的情况包括能够clone正常 但完全无法推动 似乎我无法使身份验证位正常工作 因为我
  • SQL状态[99999];错误代码[17004];无效的列类型:1111 使用 Spring SimpleJdbcCall

    大家好 我正在使用 spring 简单的 JDBC 模板来调用 oracle 过程 下面是我的代码 步骤 create or replace PROCEDURE get all system users pi client code IN
  • 寻找下一个开放端口

    有没有什么办法 使用基本的 Unix 命令 找到下一个未使用的端口号 从端口 4444 开始向上 我通过 ssh 通过 openssh 进入 Windows XP 计算机 运行 Cygwin 工具并使用 bash shell 谢谢 戴夫 尝
  • django获取FileField的绝对路径

    我试图在模板上调用 FileField 时检索绝对路径 以 http 开头 我怎样才能做到这一点 ie fl uploadedfile gt 返回相对路径 如 media uploads 当我想要的时候This http www blabl
  • 无法启动进程启动失败:等待应用程序启动超时

    我正在尝试在设备上启动我的应用程序 它在模拟器上成功启动 项目清单 我用的是7 1 SDK Xcode 5 该设备是 7 1 iPhone 4S 我努力了 Clean 清理构建文件夹 删除应用程序 断开 重新连接设备 启动装置 重新启动 X
  • 如何让所有行数据去掉相似的数据并相乘浮点数

    如何分离所有列 df df hlogUs dB hlogDs dB df hlogUs dB hlogDs dB 0 109 3 4 110 3 4 111 3 4 112 3 5 113 3 5 1 5 2 5 6 2 5 7 2 1 8
  • 无法从index.js解析模块@babel/runtime/helpers/interopRequireDefault

    我刚刚克隆了这个存储库 反应本机纸 https github com callstack react native paper 但是当我在根目录上运行时 yarn install 我收到以下警告 D react native paper m