【发布时间】:2021-11-04 22:56:50
【问题描述】:
我是 React Native 的新手,运行此命令后出现以下错误 npm install @react-navigation/material-top-tabs react-native-tab-view
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: AppName@0.0.1
npm ERR! Found: @react-navigation/native@5.9.8
npm ERR! node_modules/@react-navigation/native
npm ERR! @react-navigation/native@"^5.9.8" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer @react-navigation/native@"^6.0.0" from @react-navigation/material-top-tabs@6.0.2
npm ERR! node_modules/@react-navigation/material-top-tabs
npm ERR! @react-navigation/material-top-tabs@"*" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See C:\Users\Name\AppData\Local\npm-cache\eresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Name\AppData\Local\npm-cache\_logs\2021-09-08T06_50_05_697Z-debug.log
【问题讨论】:
-
请编辑问题以将其限制为具有足够详细信息的特定问题,以确定适当的答案。
标签: javascript react-native react-native-navigation