Home > other >  Some dependencies are incompatible with the installed expo package version
Some dependencies are incompatible with the installed expo package version

Time:08-03

Hello I am learning expo for react Native and while running my app i get the error below. My app runs fine but i just want to get rid of the error. is there something like npm update i can do to get rid of this error

here is the error:

Some dependencies are incompatible with the installed expo package version:

  • @react-native-picker/picker - expected version: 2.4.0 - actual version installed: 2.4.2
  • react-native-safe-area-context - expected version: 4.2.4 - actual version installed: 4.3.1
  • react-native-screens - expected version: ~3.11.1 - actual version installed: 3.13.1 Your project may not work correctly until you install the correct versions of the packages. To install the correct versions of these packages, please run: expo doctor --fix-dependencies, or install individual packages by running expo install [package-name ...]

CodePudding user response:

It appears to be that the expected version of some of your installed libraries are lower than the actual versions that you installed. You need to downgrade your dependencies to match the expected version to get rid of the warnings.

First you will need to uninstall the above packages by the command: npm uninstall [library-name]. For example: npm uninstall react-native-screens

After that, you will need to reinstall the above libraries using their recommended version: mpn install [email protected]

You can also refer to this for more information: How do I down grade my react navigation in a current react-native project?

CodePudding user response:

actually this does the trick

expo doctor --fix-dependencies
  • Related