Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/reactjs/21.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Reactjs npm错误!ERESOLVE无法解析React Native中的依赖项树_Reactjs_React Native_Npm - Fatal编程技术网

Reactjs npm错误!ERESOLVE无法解析React Native中的依赖项树

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

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 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_模块并重新安装了它?