gpt4 book ai didi

reactjs - npm 安装 react-native-paper 期间出现问题

转载 作者:行者123 更新时间:2023-12-02 02:09:05 32 4
gpt4 key购买 nike

npm 错误!代码 ERESOLVE错误! ERESOLVE 无法解析依赖树错误!错误!发现:react@17.0.1错误!节点模块/ react 错误!来自@react-native-community/masked-view@0.1.11 的同行 react@">=16.0"错误! node_modules/@react-native-community/masked-view错误!来自 @react-navigation/stack@5.14.5 的 peer @react-native-community/masked-view@">= 0.1.0"错误! node_modules/@react-navigation/堆栈错误!来自根项目的@react-navigation/stack@"^5.14.5"错误!来自根项目的@react-native-community/masked-view@"^0.1.11"错误!来自@react-navigation/bottom-tabs@5.11.11 的 peer react@""错误! node_modules/@react-navigation/底部标签错误!来自根项目的@react-navigation/bottom-tabs@"^5.11.11"错误!还有 15 个(@react-navigation/core,@react-navigation/native,...)错误!错误!无法解决依赖关系:错误!来自@callstack/react-theme-provider@3.0.6 的同行 react@"^16.3.0"错误! node_modules/react-native-paper/node_modules/@callstack/react-theme-provider错误! @callstack/react-theme-provider@"^3.0.6"来自 react-native-paper@4.9.1错误! node_modules/react-native-paper错误!来自根项目的 react-native-paper@""错误!错误!修复上游依赖冲突,或者重试错误!此命令与 --force 或 --legacy-peer-deps错误!接受不正确(并且可能损坏)的依赖项解析。错误!.

npm 错误!可以在以下位置找到此运行的完整日志:

最佳答案

npm install 命令中使用 --force

npm install <package-name> --force

您尝试安装的包依赖于 React v16,但您有 React v17。

这个错误是在最新的 npm 版本中遇到的。

关于reactjs - npm 安装 react-native-paper 期间出现问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/67946298/

32 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com