I have a React Native Expo application, and I am trying to install expo-splash-screen with running npx expo install expo-splash-screen
As a result I get the following error message:
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: react-navigation-drawer@2.7.2
npm ERR! Found: react-native-gesture-handler@2.5.0
npm ERR! node_modules/react-native-gesture-handler
npm ERR! peer react-native-gesture-handler@">= 1.0.0" from @react-navigation/drawer@6.5.0
npm ERR! node_modules/@react-navigation/drawer
npm ERR! @react-navigation/drawer@"^6.5.0" from the root project
npm ERR! peer react-native-gesture-handler@">= 1.5.0" from react-navigation-stack@2.10.4
npm ERR! node_modules/react-navigation-stack
npm ERR! react-navigation-stack@"^2.10.4" from the root project
npm ERR! 1 more (the root project)
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react-native-gesture-handler@"^1.0.12" from react-navigation-drawer@2.7.2
npm ERR! node_modules/react-navigation-drawer
npm ERR! react-navigation-drawer@"^2.7.2" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: react-native-gesture-handler@1.10.3
npm ERR! node_modules/react-native-gesture-handler
npm ERR! peer react-native-gesture-handler@"^1.0.12" from react-navigation-drawer@2.7.2
npm ERR! node_modules/react-navigation-drawer
npm ERR! react-navigation-drawer@"^2.7.2" 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.
While running npm -v react-native-gessture-handler
it says: 8.15.0.
I have also tried using npm i react-native-splash-screen --force but it is not good for an expo application, and I am pretty sure that installing react-navigation-drawer with --force
resulted the problem.
I am not really experienced with package managing so I do not really get the point of the error message. How can I install expo-splash-screen, and can somebody explain the error message?