Reputation: 733
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:
Upvotes: 2
Views: 12540
Reputation: 733
actually this does the trick
expo doctor --fix-dependencies
2024 update:
npx expo install --check
-prompts you about packages that are installed incorrectly. It also prompts about installing these packages to their compatible versions locally. You can also use :
npx expo install --fix
read more https://docs.expo.dev/more/expo-cli/
Upvotes: 6
Reputation: 1
You need to update your package:
Upvotes: 0
Reputation: 11
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 react-native-screens@3.11.1
You can also refer to this for more information: How do I down grade my react navigation in a current react-native project?
Upvotes: 0