Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unable to resolve dependency tree #209

Open
rendertom opened this issue Jan 24, 2022 · 1 comment
Open

unable to resolve dependency tree #209

rendertom opened this issue Jan 24, 2022 · 1 comment

Comments

@rendertom
Copy link

rendertom commented Jan 24, 2022

Cannot install React Native Localization (2.1.7) in React Native (0.66.4).

Here's the error:

ios -> npm i react-native-localization
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: aritmetika@0.0.1
npm ERR! Found: react-native@0.66.4
npm ERR! node_modules/react-native
npm ERR!   react-native@"0.66.4" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer react-native@"^0.64" from react-native-localization@2.1.7
npm ERR! node_modules/react-native-localization
npm ERR!   react-native-localization@"*" 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/tomas/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/tomas/.npm/_logs/2022-01-24T11_23_16_954Z-debug.log
@josesanchis16
Copy link

npm i react-native-localization --legacy-peer-deps works for me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants