Reputation: 63599
After updating Expo SDK 33 to 34, I started noticing an error about several expo npm packages having to be at least v6.0.0...
$ expo start -c
Starting project at /Users/nyxynyx/expoapp
Expo DevTools is running at http://localhost:19002
Some of your project's dependencies are not compatible with currently installed expo package version:
- expo-ads-admob - expected version range: ~6.0.0 - actual version installed: ^5.0.1
- expo-analytics-amplitude - expected version range: ~6.0.0 - actual version installed: ^5.0.1
- expo-barcode-scanner - expected version range: ~6.0.0 - actual version installed: ^5.0.1
- expo-permissions - expected version range: ~6.0.0 - actual version installed: ^5.0.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 install [package-name ...]
...
Went ahead to update these packages
$ npm install --save expo-ads-admob expo-analytics-amplitude expo-barcode-scanner expo-permissions
npm WARN The package react-native-dotenv is included as both a dev and production dependency.
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
updated 4 packages and audited 38421 packages in 5.052s
found 11 low severity vulnerabilities
run `npm audit fix` to fix them, or `npm audit` for details
Also tried clearing caches using:
rm -rf node_modules
npm cache clean
npm install
watchman watch-del-all
rm -fr $TMPDIR/metro*
expo start -c
However, the same warning message about requiring v6.0.0+ exists. The app appears to run ok (Barcode scanner, etc) in the Expo iOS client. What should we do?
Upvotes: 5
Views: 12234
Reputation: 13906
If you are using Expo
, I don't think it's the right way to install it. If you want to install your own module from Expo
, use this command.
Example
expo install expo-ads-admob
Upvotes: 6