Error upgrading from expo SDK 47 to 48: "npx expo-doctor" command fails

Please provide the following:

  1. SDK Version: 47 to 48
  2. Platforms(Android/iOS/web/all): Android+ios
  3. Add the appropriate “Tag” based on what Expo library you have a question on.

Any idea on how to fix my problem upgrading from SDK47 to 48?
I followed the instructions in the blog: Expo SDK 48. Today we’re announcing the release of… | by Brent Vatne | Exposition

npx expo-doctor generates the following errors:

✔ Check package.json for common issues
✔ Validate global prerequisites versions
✖ Check for incompatible packages
Unexpected error while running 'Check for incompatible packages' check:
Error: Dependency tree validation for @unimodules/core failed. This validation is only available on Node 16+ / npm 8.
✖ Check for conflicting global packages in project
Unexpected error while running 'Check for conflicting global packages in project' check:
Error: Dependency tree validation for expo-cli failed. This validation is only available on Node 16+ / npm 8.
✔ Validate Expo Config
✖ Verify prebuild support package versions are compatible
Unexpected error while running 'Verify prebuild support package versions are compatible' check:
Error: Dependency tree validation for @expo/prebuild-config failed. This validation is only available on Node 16+ / npm 8.
✔ Check compatible dependency versions for the installed Expo SDK
One or more checks failed, indicating possible issues with the project.

I uninstalled (npm uninstall ) all three modules: @unimodules/core, expo-cli, @expo/prebuild-config
for each of them, npm ls is empty (and they are deprecated)
I deleted node-Modules and package-lock.json
I reinstalled expo (npm install expo)
I still get exactly the same issue.

Previoulsy, the first package listed with a problem was @unimodules/reaact-native-adapter, which I also uninstalled (and is deprecated anyways). I tried to upgrade node to v18. I also added “resolutions” in package.json, as suggested in some posts, and tried many other things but I am still stuck…
eas build does not work as npx expo-doctor fails.

Any idea would be more than welcome… Thanks so much in advance!

npm: 9.6.7
node: v16.18.1

package.json:

{
  "scripts": {
    "start": "expo start --dev-client",
    "android": "expo run:android",
    "ios": "expo run:ios",
    "web": "expo start --web",
    "eject": "expo eject",
    "lint": "eslint *.js **/*.js",
    "images": "node scripts/images.js"
  },
  "dependencies": {
    "@expo/samples": "~36.0.0",
    "@expo/vector-icons": "^13.0.0",
    "@react-native-async-storage/async-storage": "1.17.11",
    "@react-native-community/datetimepicker": "6.7.3",
    "@react-native-community/masked-view": "^0.1.10",
    "@react-navigation/bottom-tabs": "^6.3.2",
    "@react-navigation/material-top-tabs": "^6.2.2",
    "@react-navigation/native": "^6.0.11",
    "@react-navigation/native-stack": "^6.7.0",
    "@react-navigation/stack": "^6.0.11",
    "@rneui/base": "^4.0.0-rc.7",
    "@rneui/themed": "^4.0.0-rc.7",
    "acorn": "^7.1.1",
    "algoliasearch": "^4.14.2",
    "axios": "^0.21.4",
    "babel-preset-expo": "^9.3.0",
    "core-js": "^3.10.1",
    "css-what": "^5.0.1",
    "dayjs": "^1.10.7",
    "dayjs-plugin-utc": "^0.1.2",
    "expo": "~48.0.18",
    "expo-application": "~5.1.1",
    "expo-asset": "~8.9.1",
    "expo-blur": "~12.2.2",
    "expo-constants": "~14.2.1",
    "expo-contacts": "~12.0.1",
    "expo-dev-client": "~2.2.1",
    "expo-device": "~5.2.1",
    "expo-font": "~11.1.1",
    "expo-image-manipulator": "~11.1.1",
    "expo-image-picker": "~14.1.1",
    "expo-linking": "~4.0.1",
    "expo-notifications": "~0.18.1",
    "expo-permissions": "~14.1.1",
    "expo-random": "~13.1.1",
    "expo-secure-store": "~12.1.1",
    "expo-splash-screen": "~0.18.2",
    "expo-status-bar": "~1.4.2",
    "expo-task-manager": "~11.1.1",
    "expo-updates": "~0.16.4",
    "expo-web-browser": "~12.1.1",
    "firebase": "^8.10.0",
    "formik": "^2.2.9",
    "joi": "^17.4.0",
    "lodash": "^4.17.20",
    "minimist": "^1.2.6",
    "moment": "^2.27.0",
    "normalizr": "^3.6.0",
    "npm": "^6.14.5",
    "prop-types": "^15.7.2",
    "qs": "^6.10.1",
    "react": "18.2.0",
    "react-devtools-core": "^4.23.0",
    "react-dom": "18.2.0",
    "react-instantsearch-native": "^6.38.1",
    "react-native": "0.71.8",
    "react-native-base64": "0.0.2",
    "react-native-collapsible": "^1.5.3",
    "react-native-gesture-handler": "~2.9.0",
    "react-native-get-random-values": "~1.8.0",
    "react-native-gifted-chat": "^1.1.1",
    "react-native-keyboard-aware-scroll-view": "^0.9.5",
    "react-native-localize": "^2.0.1",
    "react-native-maps": "1.3.2",
    "react-native-modal": "^13.0.1",
    "react-native-pager-view": "6.1.2",
    "react-native-reanimated": "~2.14.4",
    "react-native-responsive-screen": "^1.4.0",
    "react-native-safe-area-context": "4.5.0",
    "react-native-screens": "~3.20.0",
    "react-native-svg": "13.4.0",
    "react-native-tab-view": "^3.1.1",
    "react-native-vector-icons": "^9.2.0",
    "react-native-web": "~0.18.7",
    "react-native-webview": "11.26.0",
    "react-redux": "^7.2.0",
    "redux": "^4.0.5",
    "redux-devtools-extension": "^2.13.9",
    "redux-logger": "^3.0.6",
    "redux-persist": "^6.0.0",
    "redux-saga": "^1.1.3",
    "set-value": "^4.1.0",
    "sharp-cli": "^3.0.0",
    "unimodules-app-loader": "^4.1.1",
    "uuid": "^7.0.3",
    "yup": "^0.32.11",
    "expo-build-properties": "~0.6.0"
  },
  "devDependencies": {
    "@babel/core": "^7.19.3",
    "@types/react": "~18.0.24",
    "@types/react-native": "~0.70.6",
    "@types/react-test-renderer": "^16.9.2",
    "babel-preset-expo": "^9.3.0",
    "metro": "^0.72.3",
    "metro-config": "^0.72.3",
    "metro-core": "^0.72.3",
    "typescript": "^4.6.3"
  },
  "resolutions": {
    "@expo/config-plugins": "~6.0.0",
    "@expo/prebuild-config": "~6.0.0",
    "expo-modules-autolinking": "~1.1.0",
    "@expo/cli": "xxx"
  },
  "private": true,
  "name": "mApp",
  "version": "1.0.0"
}

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