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

Can't install react-native-card-flip gives error #27

Open
sencerturgut opened this issue Jan 13, 2021 · 1 comment
Open

Can't install react-native-card-flip gives error #27

sencerturgut opened this issue Jan 13, 2021 · 1 comment

Comments

@sencerturgut
Copy link

sencerturgut commented Jan 13, 2021

While I try to install package, it gives this error:

`

  • npm ERR! code ERESOLVE
  • npm ERR! ERESOLVE unable to resolve dependency tree
  • npm ERR!
  • npm ERR! While resolving: undefined@undefined
  • npm ERR! Found: react-native@0.63.4
  • npm ERR! node_modules/react-native
  • npm ERR! react-native@"~0.63.4" from the root project
  • npm ERR!
  • npm ERR! Could not resolve dependency:
  • npm ERR! peer react-native@"^0.49.1" from react-native-card-flip@1.0.7
  • npm ERR! node_modules/react-native-card-flip
  • npm ERR! react-native-card-flip@"*" 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
    .`
@a-fortunato
Copy link

This happens because npm v7 gives error when peer dependencies don't match the version.
A workaround while the version is fixed in the package is to pass the option legacy-peer-deps: npm install --legacy-peer-deps
That should at least complete the installation and let you use the library.

Some more info in next links:

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