【问题标题】:Issue while install react-native-firebase/messaging in react native project在 react native 项目中安装 react-native-firebase/messaging 时出现问题
【发布时间】:2021-09-06 23:56:32
【问题描述】:

我尝试在 cmd 中使用“npm install @react-native-firebase/messaging”,安装时出现问题。

解析时:mealy@0.0.1 找到:react@17.0.2 节点模块/反应 react@"17.0.2" 来自根项目 来自@react-native-firebase/app@11.5.0 的 peer react@"*" node_modules/@react-native-firebase/app @react-native-firebase/app@"^11.3.3" 来自根项目

无法解析依赖: 来自 react-native@0.64.0 的对等 react@"17.0.1" node_modules/react-native react-native@"0.64.0" 来自根项目 来自@react-native-firebase/app@11.5.0 的对等 react-native@"*" node_modules/@react-native-firebase/app @react-native-firebase/app@"^11.3.3" 来自根项目

【问题讨论】:

    标签: firebase react-native firebase-cloud-messaging react-native-android


    【解决方案1】:

    您需要安装最新版本的@react-native-firebase/app 和相同版本的@react-native-firebase/analytics。因为在 3 月份这个库更新了 react 的依赖关系。

    您可以在此处看到的更改 https://github.com/invertase/react-native-firebase/pull/5042/files

    npm install @react-native-firebase/app@latest
    npm install @react-native-firebase/analytics@latest
    

    【讨论】:

    • 这修复了它。非常感谢。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2022-11-26
    • 1970-01-01
    • 2020-07-02
    • 1970-01-01
    • 2021-07-11
    • 1970-01-01
    相关资源
    最近更新 更多