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 03 Answers
Reset to default 3Run 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
版权声明:本文标题:javascript - "npx expo-doctor" command fails in expo SDK 48 - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://roclinux.cn/p/1744022732a2520093.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论