0

I just update expo SDK from 48 to 51 and then face 'unable to resolve dependency error' message whey try to execute command 'npm install'

npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! While resolving: [email protected] npm ERR! Found: [email protected] npm ERR! node_modules/react npm ERR! react@"18.2.0" from the root project npm ERR! peer react@"^18.0.0" from [email protected] npm ERR! node_modules/react-native-web npm ERR! react-native-web@"~0.19.10" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer react@"^18.3.1" from [email protected] npm ERR! node_modules/react-dom npm ERR! peer react-dom@"^18.0.0" from [email protected] npm ERR! node_modules/react-native-web npm ERR! react-native-web@"~0.19.10" 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! npm ERR! For a full report see: npm ERR! C:\Users\User\AppData\Local\npm-cache_logs\2024-07-30T04_16_54_388Z-eresolve-report.txt

npm ERR! A complete log of this run can be found in: C:\Users\User\AppData\Local\npm-cache_logs\2024-07-30T04_16_54_388Z-debug-0.log enter image description here

trying to upgrade expo SDK to use latest feature specially expo-camera

1 Answer 1

0

You are getting a dependency conflict. use this command, it will hopefully resolve the issue

npm install --legacy-peer-deps
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.