Expo-doctor fixed the issue for me I ran the command with expo doctor:
npx expo-doctor
then
npx expo install --check