facebook / metro

🚇 The JavaScript bundler for React Native
https://metrobundler.dev
MIT License
5.24k stars 626 forks source link

npm install fails with @react-native-async-storage/async-storage@1.23.1 #1279

Closed costin-tuculescu closed 5 months ago

costin-tuculescu commented 5 months ago

Getting this error with 0.73.6-3 or 0.74.1-0. It seems to be related to the "-3" or "-0" notation not satisfying the version dependency.

npm install

npm ERR! code ERESOLVE npm ERR! ERESOLVE could not resolve npm ERR! npm ERR! While resolving: @react-native-async-storage/async-storage@1.23.1 npm ERR! Found: react-native@0.74.1-0 npm ERR! node_modules/react-native npm ERR! react-native@"npm:react-native-tvos@0.74.1-0" from the root project npm ERR! peer react-native@"*" from @intercom/intercom-react-native@3.0.5 npm ERR! node_modules/@intercom/intercom-react-native npm ERR! @intercom/intercom-react-native@"^3.0.5" from the root project npm ERR! 10 more (@react-native-firebase/app, ...) npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer react-native@"^0.0.0-0 || >=0.60 <1.0" from @react-native-async-storage/async-storage@1.23.1 npm ERR! node_modules/@react-native-async-storage/async-storage npm ERR! @react-native-async-storage/async-storage@"^1.21.0" from the root project npm ERR! npm ERR! Conflicting peer dependency: react-native@0.74.1 npm ERR! node_modules/react-native npm ERR! peer react-native@"^0.0.0-0 || >=0.60 <1.0" from @react-native-async-storage/async-storage@1.23.1 npm ERR! node_modules/@react-native-async-storage/async-storage npm ERR! @react-native-async-storage/async-storage@"^1.21.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.

Any advice?