When I run
expo-cli doctor
I get
WARNING: The legacy expo-cli does not support Node +17. Migrate to the versioned Expo CLI (npx expo).
But when I run
yarn expo doctor
I get
expo doctor is not supported in the local CLI, please use expo-cli doctor instead
This seems circular, or at least fishy. I have the latest expo
and expo-cli
installed, but Iβm still being told to install something else (more recent).
How do I fix this so Iβm not being told to install something that (I think) I already have installed.
Anywhere:
$ npm list --location=global --depth=0
/opt/homebrew/lib
βββ @aws-amplify/cli@10.7.3
βββ corepack@0.16.0
βββ create-expo-app@1.3.2
βββ eas-cli@3.6.0
βββ expo-cli@6.3.1
βββ firebase-tools@11.23.1
βββ ios-sim@9.0.0
βββ npm-check-updates@16.7.5
βββ npm@9.5.0
βββ react-devtools@4.27.2
$ which -a eas
/opt/homebrew/bin/eas
$ eas --version
eas-cli/3.6.0 darwin-arm64 node-v18.14.1
$ expo --version
WARNING: The legacy expo-cli does not support Node +17. Migrate to the versioned Expo CLI (npx expo).
6.3.1
In my project directory:
$ yarn list
...
βββ expo-dev-client@2.0.1
βββ expo-file-system@15.1.1
βββ expo-sharing@11.0.1
βββ expo-splash-screen@0.17.5
βββ expo-status-bar@1.4.4
βββ expo-updates@0.15.6
βββ expo@47.0.13
$ which -a expo
/private/var/folders/90/46v8ldy13r13wf1hr7w9xzfw0000gn/T/xfs-08dd5804/expo
/opt/homebrew/bin/expo
$ /private/var/folders/90/46v8ldy13r13wf1hr7w9xzfw0000gn/T/xfs-08dd5804/expo
-bash: /private/var/folders/90/46v8ldy13r13wf1hr7w9xzfw0000gn/T/xfs-08dd5804/expo: No such file or directory
...
At ~
:
$ npm list
/Users/Rax
βββ (empty)
$ yarn list
yarn list v1.22.19
Done in 0.01s.
$ which -a expo
/opt/homebrew/bin/expo