Reactjs npm错误!ERESOLVE无法解析React Native中的依赖项树
React本机项目中出现错误,无法安装程序包 错误:Reactjs npm错误!ERESOLVE无法解析React Native中的依赖项树,reactjs,react-native,npm,Reactjs,React Native,Npm,React本机项目中出现错误,无法安装程序包 错误: npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! Found: react-native-svg@12.1.1 npm ERR! node_modules/react-native-svg npm ERR! peer react-native-svg@">=6.5.1" from
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! Found: react-native-svg@12.1.1
npm ERR! node_modules/react-native-svg
npm ERR! peer react-native-svg@">=6.5.1" from react-native-svg-transformer@0.13.0
npm ERR! node_modules/react-native-svg-transformer
npm ERR! react-native-svg-transformer@"0.13.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! react-native-svg-uri@"1.2.3" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: react-native-svg@5.5.1
npm ERR! node_modules/react-native-svg
npm ERR! peer react-native-svg@"^5.3.0" from react-native-svg-uri@1.2.3
npm ERR! node_modules/react-native-svg-uri
npm ERR! react-native-svg-uri@"1.2.3" 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\admin\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\admin\AppData\Local\npm-cache\_logs\2021-05-23T15_12_37_450Z-debug.log
react-native之间存在冲突-svg@5.5.1
和反应本机svg@“>=6.5.1”
反应本机svg-uri@1.2.3
是否使用5.5.1,您需要更新该版本或根据您的要求解决要安装的依赖关系?您是否删除了node_模块并重新安装了它?