如何解决这个依赖安装错误?

时间:2021-06-18 10:28:42

标签: react-native npm

在安装依赖项时遇到这些控制台错误,如果有人遇到同样的错误,请指导

我尝试使用 --force 但这不起作用并跳过大多数依赖项

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: mstore-multivendor@1.2.2
npm ERR! Found: react@16.5.0
npm ERR! node_modules/react
npm ERR!   react@"16.5.0" from the root project
npm ERR!   peer react@">=15.2.0" from react-native-image-view@2.1.9
npm ERR!   node_modules/react-native-image-view
npm ERR!     react-native-image-view@"^2.1.5" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"16.3.1" from react-native@0.55.4
npm ERR! node_modules/react-native
npm ERR!   react-native@"https://github.com/expo/react-native/archive/sdk-30.0.0.tar.gz" from the root project
npm ERR!   peer react-native@">=0.44.0" from react-native-image-view@2.1.9
npm ERR!   node_modules/react-native-image-view
npm ERR!     react-native-image-view@"^2.1.5" 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\ASHIR\AppData\Local\npm-cache\eresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in:

0 个答案:

没有答案