Reputation: 158
I recently update npm and now, when I run npm start
, This message shows up:
Some of your project's dependencies are not compatible with currently installed expo package version:
- @react-native-community/netinfo - expected version range: 5.5.1 - actual version installed: ^5.8.1
Does anyone know how can I remove this Warning ?
Thank you!
Upvotes: 10
Views: 33471
Reputation: 11
Use npx expo install --check
to review and upgrade your dependencies.
If any outdated dependencies are found, you will be prompted with the question, Fix dependencies?
Type Yes
and the tool will automatically handle the rest of the process for you.
Upvotes: 1
Reputation: 141
Try this one. I solved my problem with it.
% npx expo install --fix
this is a guide to upgrade dependencies in expo docs.
Upvotes: 10
Reputation: 17979
As for me, I was getting this error message:
% npx expo start
Starting project at /Users/knocte/Documents/Code/BreakOrBuild/BreakOrBuildHabit
Starting Metro Bundler
The following packages should be updated for best compatibility with the installed expo version:
[email protected] - expected version: 0.73.6
[email protected] - expected version: 6.2.3
Your project may not work correctly until you install the correct versions of the packages.
[snip... QR code...]
Logs for your project will appear below. Press Ctrl+C to exit.
Android Bundling failed 5865ms (node_modules/expo-router/entry.js)
Unable to resolve "@react-native-picker/picker" from "node_modules/react-native-picker-select/src/index.js"
I fixed it with:
npm install [email protected] --force
(The --force arg was important, otherwise I would get ERESOLVE unable to resolve dependency tree
.)
Upvotes: 0
Reputation: 21
It just means that some of the dependencies in your project are out of date and not compatible with the version of expo you are using in your project.
It is quite common and to fix this issue i run 'npx expo update' or 'expo update' depending on how you execute expo.
Upvotes: 0
Reputation: 322
I was pulling my hair for a similar problem with firebase...
If the expected version was higher than the installed one it would be fixed easily by running "npm install" but not this one, where the expected version is lower than the Installed one.
The fix is to run "expo update" on the project folder. or yarn upgrade
You can also use the following:
expo install @react-native-community/[email protected]
to fix the problem instead of using the big hammer "expo update" :)
Upvotes: 10