Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"npx expo-doctor" command fails in expo SDK 48

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.

like image 751
Habibur Rahman Avatar asked Feb 02 '26 21:02

Habibur Rahman


1 Answers

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!
like image 194
Michael Avatar answered Feb 05 '26 12:02

Michael