Raja0sama / WooShop

A Wocommerce Based React Native App for IOS and Android over GraphQL

Home Page:https://rajaosama.me

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

npm ERR! ERESOLVE unable to resolve dependency tree - node_modules/react

SomeDevWeb opened this issue · comments

...\WooShop> npm install
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: WooShop@2.0.0
npm ERR! Found: react@16.13.1
npm ERR! node_modules/react
npm ERR! react@"16.13.1" from the root project
npm ERR! peer react@"*" from @react-navigation/native@5.0.1
npm ERR! node_modules/@react-navigation/native
npm ERR! @react-navigation/native@"^5.0.1" from the root project
npm ERR! peer @react-navigation/native@"^5.0.0" from @react-navigation/compat@5.0.1
npm ERR! node_modules/@react-navigation/compat
npm ERR! @react-navigation/compat@"^5.0.1" from the root project
npm ERR! 1 more (react-native)
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"~16.9.0" from @react-navigation/compat@5.0.1
npm ERR! node_modules/@react-navigation/compat
npm ERR! @react-navigation/compat@"^5.0.1" 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!

Hi. In case someone else has this, this worked for me:
npm install --save react --legacy-peer-deps