admin 管理员组

文章数量: 1086019

I am using expo SDK 48(Managed workflow). I always get an error while running following mand

npx expo-doctor

It gives the following log:

npx expo-doctor
✔ Validating global prerequisites versions passed
✔ Checking for inpatible packages passed
✔ Checking for conflicting global packages in project passed
✖ Verifying prebuild support package versions are patible 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 patibility with the installed Expo SDK passed
✔ Validating Expo Config passed
✔ Checking package.json for mon 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.

I am using expo SDK 48(Managed workflow). I always get an error while running following mand

npx expo-doctor

It gives the following log:

npx expo-doctor
✔ Validating global prerequisites versions passed
✔ Checking for inpatible packages passed
✔ Checking for conflicting global packages in project passed
✖ Verifying prebuild support package versions are patible 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 patibility with the installed Expo SDK passed
✔ Validating Expo Config passed
✔ Checking package.json for mon 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.

Share Improve this question asked Apr 27, 2023 at 11:35 Habibur RahmanHabibur Rahman 5413 gold badges10 silver badges21 bronze badges 0
Add a ment  | 

3 Answers 3

Reset to default 3

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 inpatible packages passed
✔ Checking for conflicting global packages in project passed
✔ Verifying prebuild support package versions are patible passed
✔ Checking dependency versions for patibility with the installed Expo SDK passed
✔ Validating Expo Config passed
✔ Checking package.json for mon issues passed

Didn't find any issues with the project!

I faced the same problem.

This worked for me, added a resolution in package.json :

  "resolutions": {
        "@expo/config-plugins": "~6.0.0",
        "@expo/prebuild-config": "~6.0.0",
        "expo-modules-autolinking": "~1.1.0"
    },

It works for me:

Add Native Folders (ios and android) to .gitignore and then run this mand:

  • git rm -r --cached ios
  • git rm -r --cached android
  • git mit -m "Remove ios and android folders from version control"

This will remove the folders from version control, but you will still have them locally for the project to work properly.

本文标签: javascriptquotnpx expodoctorquot command fails in expo SDK 48Stack Overflow