EAS build failing for both Android and IOS

My builds for both Android and EAS have been been successfully built using the EAS build commands till about 2 weeks ago.
Today made a few javascript changes to code and tried to EAS build for both Android and IOS
but both are failing

expo doctor showing following errors
Error while building Android

✖ Checking for incompatible packages failed
[stderr] 
Error: Failed to find dependency tree for @unimodules/react-native-adapter: npm exited with non-zero code: 7
- Checking for conflicting global packages in project...
✖ Checking for conflicting global packages in project failed
- Verifying prebuild support package versions are compatible...
[stderr] 
Error: Failed to find dependency tree for expo-cli: npm exited with non-zero code: 7
✖ Verifying prebuild support package versions are compatible failed
- Checking dependency versions for compatibility with the installed Expo SDK...
[stderr] 
Error: Failed to find dependency tree for @expo/config-plugins: npm exited with non-zero code: 7
✖ Checking dependency versions for compatibility with the installed Expo SDK failed

Error while building IOS

✖ Checking for incompatible packages failed
[stderr] 
Error: Failed to find dependency tree for react-native-unimodules: npm exited with non-zero code: 7
- Checking for conflicting global packages in project...
✖ Checking for conflicting global packages in project failed
- Verifying prebuild support package versions are compatible...
[stderr] 
Error: Failed to find dependency tree for expo-cli: npm exited with non-zero code: 7
✖ Verifying prebuild support package versions are compatible failed
[stderr] 
Error: Failed to find dependency tree for expo-modules-autolinking: npm exited with non-zero code: 7
- Checking dependency versions for compatibility with the installed Expo SDK...
✖ Checking dependency versions for compatibility with the installed Expo SDK failed

Versions
“expo”: “~47.0.8”
eas-cli/3.5.2 darwin-x64 node-v16.15.0

When I run npx expo doctor locally I don’t have any of the above issues

Hi @batabhilash

What version of the Expo SDK do you have installed?

Does it work/fail if you run npx expo-doctor (note the dash) locally?
What about npx expo install --check?

I’ve the exactly same issue and it happened since today.
Something is wrong with EAS server because expo-doctor works correctly for me on local.

@batabhilash what dependencies and devDependencies do you have in your package.json?

What version of the Expo SDK do you have installed?
Expo SDK 47

Does it work/fail if you run npx expo-doctor (note the dash) locally?
This is the output

✔ 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@^5.0.2
  Found invalid:
    @expo/config-plugins@4.1.5
    @expo/config-plugins@4.1.5
    (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.

the @expo/config-plugins error were happening occurring previously too, but the builds were successfully built

What about npx expo install --check?

user@Users-Mac-mini epiko % npx expo install --check
Dependencies are up to date

what dependencies and devDependencies do you have in your package.json ?

"dependencies": {
    "@expo/vector-icons": "^13.0.0",
    "@react-native-community/netinfo": "9.3.5",
    "@react-native-picker/picker": "2.4.8",
    "@react-navigation/bottom-tabs": "^6.0.5",
    "@react-navigation/drawer": "^6.5.3",
    "@react-navigation/material-top-tabs": "^6.5.1",
    "@react-navigation/native": "^6.0.2",
    "@react-navigation/native-stack": "^6.1.0",
    "@sentry/react-native": "4.9.0",
    "@shopify/flash-list": "1.3.1",
    "@tanstack/react-query": "^4.20.4",
    "axios": "^1.2.1",
    "buffer": "^6.0.3",
    "cheerio": "^1.0.0-rc.12",
    "date-fns": "^2.29.3",
    "deprecated-react-native-prop-types": "^4.0.0",
    "expo": "~47.0.8",
    "expo-application": "~5.0.1",
    "expo-asset": "~8.7.0",
    "expo-auth-session": "~3.8.0",
    "expo-av": "~13.0.3",
    "expo-camera": "~13.1.0",
    "expo-constants": "~14.0.2",
    "expo-dev-client": "~2.0.1",
    "expo-device": "~5.0.0",
    "expo-document-picker": "~11.0.1",
    "expo-downloads-manager": "^1.0.2",
    "expo-file-system": "~15.1.1",
    "expo-font": "~11.0.1",
    "expo-image-manipulator": "~11.0.0",
    "expo-image-manipulator-view": "^3.0.0",
    "expo-image-picker": "~14.0.2",
    "expo-intent-launcher": "~10.3.1",
    "expo-linking": "~3.3.0",
    "expo-notifications": "~0.17.0",
    "expo-random": "~13.0.0",
    "expo-secure-store": "~12.0.0",
    "expo-splash-screen": "~0.17.5",
    "expo-sqlite": "~11.0.0",
    "expo-status-bar": "~1.4.2",
    "expo-system-ui": "~2.0.1",
    "expo-updates": "~0.15.6",
    "expo-video-thumbnails": "~7.0.0",
    "expo-web-browser": "~12.0.0",
    "formik": "^2.2.9",
    "html-entities": "^2.3.3",
    "i": "^0.3.7",
    "lodash": "^4.17.21",
    "lottie-react-native": "5.1.4",
    "nativewind": "^2.0.11",
    "npm": "^9.3.0",
    "react": "18.1.0",
    "react-dom": "18.1.0",
    "react-native": "0.70.8",
    "react-native-animatable": "^1.3.3",
    "react-native-animated-loader": "^1.0.0",
    "react-native-awesome-alerts": "^2.0.0",
    "react-native-customisable-alert": "^0.1.20",
    "react-native-dropdown-picker": "^5.4.3",
    "react-native-gesture-handler": "~2.8.0",
    "react-native-get-random-values": "~1.8.0",
    "react-native-image-viewing": "^0.2.2",
    "react-native-instagram-login": "^2.0.5",
    "react-native-keyboard-aware-scroll-view": "^0.9.5",
    "react-native-loading-spinner-overlay": "^3.0.1",
    "react-native-modal": "^13.0.1",
    "react-native-pager-view": "6.0.1",
    "react-native-paper": "^5.0.1",
    "react-native-reanimated": "~2.12.0",
    "react-native-responsive-fontsize": "^0.5.1",
    "react-native-responsive-screen": "^1.4.2",
    "react-native-root-toast": "^3.4.1",
    "react-native-safe-area-context": "4.4.1",
    "react-native-screens": "~3.18.0",
    "react-native-svg": "13.4.0",
    "react-native-tab-view": "^3.3.4",
    "react-native-web": "~0.18.9",
    "react-native-webview": "11.23.1",
    "sentry-expo": "~6.0.0",
    "tailwindcss": "^3.2.4",
    "uuid": "9.0.0",
    "yup": "^0.32.11",
    "zustand": "^4.2.0"
  },
  "devDependencies": {
    "@babel/core": "^7.12.9",
    "@types/react": "~18.0.24",
    "@types/react-native": "~0.70.6",
    "jest": "^26.6.3",
    "jest-expo": "~47.0.1",
    "react-test-renderer": "18.1.0",
    "typescript": "^4.6.3"
  }

Is this intentional? It looks like it might possibly have been installed accidentally.

This is (part of) the cause of the error. I don’t know exactly why it suddenly started happening, but anyway you should not have npm installed as a local dependency.

EDIT: I have just discovered that this error is caused by a combination of Expo SDK 47, having npm installed as a dependency and possibly also a recent version of expo-doctor. If you remove npm or try this in an Expo SDK 48 app then there’s no problem. Either way, you should not have npm installed as a dependency.

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.