Skip to content

ERR! Could not resolve dependency #791

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

Closed
1 of 5 tasks
HristoS opened this issue Mar 31, 2022 · 3 comments · Fixed by #789
Closed
1 of 5 tasks

ERR! Could not resolve dependency #791

HristoS opened this issue Mar 31, 2022 · 3 comments · Fixed by #789
Labels
bug Something isn't working

Comments

@HristoS
Copy link

HristoS commented Mar 31, 2022

What happened?

When i am taring to install with react-native react-native@"0.68.0" , i've got
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/react-native
npm ERR! react-native@"0.68.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react-native@"^0.0.0-0 || 0.60 - 0.67 || 1000.0.0" from @react-native-a
npm ERR! node_modules/@react-native-async-storage/async-storage
npm ERR! @react-native-async-storage/async-storage@"*" from the root project

Version

1.17.2

What platforms are you seeing this issue on?

  • Android
  • iOS
  • macOS
  • Windows
  • web

System Information

PS C:\Repositories\FE\CarAssistant> npm install @react-native-async-storage/async-sto
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-native
npm ERR!   react-native@"0.68.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react-native@"^0.0.0-0 || 0.60 - 0.67 || 1000.0.0" from @react-native-a
npm ERR! node_modules/@react-native-async-storage/async-storage
npm ERR!   @react-native-async-storage/async-storage@"*" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\hristo.stoev\AppData\Local\npm-cache\_logs\2022-03-31T13_58_44_
PS C:\Repositories\FE\CarAssistant>
                                  > npm install @react-native-async-storage/async-sto
>>
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-native
npm ERR!   react-native@"0.68.0" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer react-native@"^0.0.0-0 || 0.60 - 0.67 || 1000.0.0" from @react-native-a
npm ERR! node_modules/@react-native-async-storage/async-storage
npm ERR!   @react-native-async-storage/async-storage@"*" from the root project
npm ERR! 
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\hristo.stoev\AppData\Local\npm-cache\_logs\2022-03-31T14_03_41_527Z-debug-0.log

Steps to Reproduce

run npm install @react-native-async-storage/async-storage with react-native@"0.68.0"

@HristoS HristoS added the bug Something isn't working label Mar 31, 2022
@tido64 tido64 linked a pull request Mar 31, 2022 that will close this issue
@varemenos
Copy link
Contributor

@tido64 sorry to bump a closed issue but im experiencing the same issue, but granted it's for an unreleased version of RN. Is there a way to unblock installations of the package for release candidates without nagging the maintainers to add support before an official RN release?

I'm trying to set up my app with 0.71-rc0 but npm (v9) refuses to install async storage because it cannot resolve the RN dependency react-native@"^0.0.0-0 || 0.60 - 0.70 || 1000.0.0"). The only 2 workarounds I've found so far are either downgrading npm to v6 or(--legacy-peer-deps) but that's harders to fiddle with in a CI or a colleague's machine.

@tido64
Copy link
Member

tido64 commented Nov 11, 2022

@tido64 sorry to bump a closed issue but im experiencing the same issue, but granted it's for an unreleased version of RN. Is there a way to unblock installations of the package for release candidates without nagging the maintainers to add support before an official RN release?

I'm trying to set up my app with 0.71-rc0 but npm (v9) refuses to install async storage because it cannot resolve the RN dependency react-native@"^0.0.0-0 || 0.60 - 0.70 || 1000.0.0"). The only 2 workarounds I've found so far are either downgrading npm to v6 or(--legacy-peer-deps) but that's harders to fiddle with in a CI or a colleague's machine.

We can probably bump that number up to 0.71. Feel free to submit a PR if you can/have time. I won't be able to until next week at the earliest.

@varemenos
Copy link
Contributor

I opened #870

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants