stefalda / ReactNativeLocalization

Class to localize the ReactNative interface
MIT License
900 stars 123 forks source link

unable to resolve dependency tree #209

Open rendertom opened 2 years ago

rendertom commented 2 years ago

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 commented 2 years ago

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