I am using expo SDK 48(Managed workflow). I always get an error while running following command
npx expo-doctor
It gives the following log:
npx expo-doctor
✔ Validating global prerequisites versions passed
✔ Checking for incompatible packages passed
✔ Checking for conflicting global packages in project passed
✖ Verifying prebuild support package versions are compatible failed
Issues:
Expected package @expo/config-plugins@~6.0.0
Found invalid:
@expo/[email protected]
@expo/[email protected]
@expo/[email protected]
(for more info, run: npm why @expo/config-plugins)
Advice:
• Upgrade dependencies that are using the invalid package versions.
✔ Checking dependency versions for compatibility with the installed Expo SDK passed
✔ Validating Expo Config passed
✔ Checking package.json for common issues passed
✖ Found one or more possible issues with the project. See above logs for issues and advice to resolve.
How can i solve this. I can build my app successfully though.
Thanks in advance.
Run npm ls @expo/config-plugins
In my case it produced the following result
[email protected] /home/mick/projects/capmon-mobile
├── @expo/[email protected]
├─┬ @expo/[email protected]
│ ├── @expo/[email protected] deduped
│ └─┬ @expo/[email protected]
│ └── @expo/[email protected] deduped
├─┬ [email protected] <-- here is the problem
│ ├── @expo/[email protected]
│ ├─┬ @expo/[email protected]
│ │ └── @expo/[email protected]
│ └─┬ @expo/[email protected]
│ └── @expo/[email protected]
└─┬ [email protected]
├─┬ @expo/[email protected]
│ └── @expo/[email protected] deduped
└── @expo/[email protected]
I uninstalled eas-cli via 'yarn remove eas-cli' and run ' npx expo-doctor' again
This time it passed
❯ npx expo-doctor
[app.config.js] config.name: capmon-mobile
✔ Validating global prerequisites versions passed
✔ Checking for incompatible packages passed
✔ Checking for conflicting global packages in project passed
✔ Verifying prebuild support package versions are compatible passed
✔ Checking dependency versions for compatibility with the installed Expo SDK passed
✔ Validating Expo Config passed
✔ Checking package.json for common issues passed
Didn't find any issues with the project!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With