MacOS: expo-cli says there is a new version available (4.4.2) but after upgrade it is still 4.4.1

I tried

npm upgrade -g expo-cli

and

npm install -g expo-cli

I’d like to try to eject, after upgrading to SDK 41, but I don’t dare without the latest version of expo-cli.

Hey @retohoehener, can you run expo --version and see what it states. Also, can you try killing your terminal and restarting it.

Cheers,
Adam

I quit the terminal, expo --version says 4.4.1. Now I did a restart of the mac and ran npm i -g expo-cli. I think I saw a glimpse of 4.4.3 somewhere and 1878 packages were changed, but expo --version still returns 4.4.1.

I’m thinking maybe something with homebrew. Going to uninstall node and npm and go back to node v14.

Diagnostics now mentions all 3 versions: 4.4.1, 4.4.2 and 4.4.3 :thinking:

┌─────────────────────────────────────────────────────────────────────────┐
│                                                                         │
│   There is a new version of expo-cli available (4.4.2).                 │
│   You are currently using expo-cli 4.4.1                                │
│   Install expo-cli globally using the package manager of your choice;   │
│   for example: `npm install -g expo-cli` to get the latest version      │
│                                                                         │
└─────────────────────────────────────────────────────────────────────────┘

  Expo CLI 4.4.1 environment info:
    System:
      OS: macOS 11.2.3
      Shell: 5.8 - /bin/zsh
    Binaries:
      Node: 15.14.0 - /opt/homebrew/bin/node
      npm: 7.9.0 - /usr/local/bin/npm
      Watchman: 4.9.0 - /opt/homebrew/bin/watchman
    Managers:
      CocoaPods: 1.10.1 - /opt/homebrew/bin/pod
    SDKs:
      iOS SDK:
        Platforms: iOS 14.4, DriverKit 20.2, macOS 11.1, tvOS 14.3, watchOS 7.2
    IDEs:
      Xcode: 12.4/12D4e - /usr/bin/xcodebuild
    npmPackages:
      expo: ~40.0.0 => 40.0.1 
      react: 16.13.1 => 16.13.1 
      react-dom: 16.13.1 => 16.13.1 
      react-native: https://github.com/expo/react-native/archive/sdk-40.0.1.tar.gz => 0.63.2 
      react-native-web: ~0.13.12 => 0.13.18 
    npmGlobalPackages:
      expo-cli: 4.4.3
    Expo Workflow: managed

it sounds like your node installation is broken. perhaps the npm that your are using to install expo-cli is behind another npm global package directory in your path

After uninstalling node, npm, react-native-cli, brew doctor and cleanup, installation of Apple Command Line Tools and then reinstalling everything again, I now have expo-cli v4.4.3.

brew install node -> 15.14.0
brew install react-native-cli -> 2.0.1
npm i -g npm@latest -> 7.10.0
npm i -g expo-cli -> 4.4.3
1 Like

Thank you all for your help!

1 Like

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