android expo SDK 48中的“npx expo-doctor”命令失败

k4emjkb1  于 2023-05-05  发布在  Android
关注(0)|答案(1)|浏览(158)

我使用的是Expo SDK 48(Managed Workflow)。我总是得到一个错误,而运行以下命令

npx expo-doctor

它给出以下日志:

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/config-plugins@5.0.4
    @expo/config-plugins@5.0.4
    @expo/config-plugins@5.0.4
    (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.

我怎么能解决这个问题。我可以成功地创建我的应用程序。
先谢谢你了。

相关问题