hi everybody! i looked into this based off of a friendly person on twitter providing me with some info, and it seems that npm does not do a very good job of deduping modules with the same version in node_modules in some cases. so, i updated expo-cli so that when you run expo upgrade
it will delete your package-lock.json and node_modules, then reinstall everything, as you would have to do manually to get this to work anyways.
so, i would suggest the following:
- if you have already upgraded and not reverted, just install the latest expo-cli with
npm i -g expo-cli
and then runexpo upgrade
in your project again - this is a useful trick to ensure that all of your packages are using the correct version, you can run it as many times as you want on the same project and if you’re already on the latest version it will just reinstall whatever is needed for that version. - if you are still on an old sdk version, be sure to install the latest expo-cli with
npm i -g expo-cli
and runexpo upgrade
as usual