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

ERESOLVE unable to resolve dependency tree #55

Open
Andres6936 opened this issue Jul 5, 2022 · 5 comments
Open

ERESOLVE unable to resolve dependency tree #55

Andres6936 opened this issue Jul 5, 2022 · 5 comments

Comments

@Andres6936
Copy link

PS C:\Anywhere> npm install react-native-user-inactivity                   
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.64.3" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react-native@"^0.63.0" from [email protected]
npm ERR! node_modules/react-native-user-inactivity
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!

... Omit lines
@ertHEroutICLI
Copy link

Same here using [email protected]

@PabloCR
Copy link

PabloCR commented Sep 7, 2022

Where you able to solve this?

@Andres6936
Copy link
Author

You have to force the installation of the dependency, but it is frowned upon by both npm and expo.

npm install react-native-user-inactivity --force

@Suliman-A
Copy link

Suliman-A commented Sep 18, 2023

Is there any other solution than adding force flag? I am using react native version is 0.72.

Screen Shot 2023-09-15 at 6 18 27 PM

@Andres6936
Copy link
Author

Andres6936 commented Sep 18, 2023

@Suliman-A Depending on your project, you can copy the sources of this library (only two files in this library) to your project, or you can add this project as a submodule, link it and keep the dependencies updated.

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

4 participants