expo install react-native-maps gives dependency error

Please provide the following:

  1. SDK Version: 42
  2. Platforms(Android/iOS/web/all): ios
  3. npm version: 7.21.0

expo install react-native-maps gives following error:

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: undefined@undefined
npm ERR! Found: react-native-web@0.13.18
npm ERR! node_modules/react-native-web
npm ERR!   react-native-web@"~0.13.12" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer react-native-web@"^0.11" from react-native-maps@0.28.0
npm ERR! node_modules/react-native-maps
npm ERR!   react-native-maps@"0.28.0" 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 /Users/roshankarki/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/roshankarki/.npm/_logs/2021-08-23T11_41_13_708Z-debug.log

try to install it with legacy peer deps flag
npm i react-native-maps --legacy-peer-deps

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.