【问题标题】:react-native-reanimated & react-navigation/drawer dependency errorreact-native-reanimated & react-navigation/drawer 依赖错误
【发布时间】:2021-12-08 15:48:11
【问题描述】:

我遇到了一个问题,我已经在 react-native-reanimated GitHub 存储库中的讨论选项卡中询问过:这是链接 in the github repo

我已经克隆了一个 react-native 项目并尝试使用 npm install 安装 npm 包,但我遇到了以下错误

我做了什么?

  • 我已尝试 npm install --legacy-peer-deps,但没有帮助
  • 我从头开始安装这些软件包,没有帮助
  • 我已尝试使用 yarn 安装软件包,错误消失了,但问题仍然存在
  • 我也尝试在应用程序上配置脚蹼,但应用程序也没有 连接到鳍状肢

任何想法和建议将不胜感激:)

【问题讨论】:

    标签: react-native react-native-reanimated react-native-reanimated-v2 react-native-debugger react-native-drawer


    【解决方案1】:

    这个问题将通过使用--legacy-peer-deps 运行npm 来解决,这将告诉npm 除了查看package-lock.json 文件并安装你曾经拥有的版本之外不要做任何其他事情在您的node_modules 文件夹中。

    npm install --legacy-peer-deps
    

    我应该提到,当你使用 npm 7 或更高版本时,你会看到这个输出。

    【讨论】:

      猜你喜欢
      • 2022-11-17
      • 2021-06-15
      • 1970-01-01
      • 2017-12-23
      • 1970-01-01
      • 1970-01-01
      • 2019-06-25
      • 1970-01-01
      • 2021-01-29
      相关资源
      最近更新 更多