For mac users (linux should be very similar):

Find your expo-cli version:

which expo-cli

For me it yielded:

/Users/username/.config/yarn/global/node_modules/.bin/expo-cli

Remove this outdated version:

rm -rf /Users/username/.config/yarn/global/node_modules/.bin/expo-cli

Check that you are using the latest version:

expo-cli --version
Answer from laurent lahmy on Stack Overflow
🌐
Expo Documentation
docs.expo.dev › more › expo-cli
Expo CLI - Expo Documentation
Build and run the native apps locally: npx expo run:ios and npx expo run:android. Install and update packages that work with the version of react-native in your project: npx expo install package-name.
🌐
Reddit
reddit.com › r/expo › how do i upgrade to the versioned expo cli?
r/expo on Reddit: How do I upgrade to the versioned Expo CLI?
April 18, 2023 -

I'm having trouble running a dev build with expo-notifications. Whenever I use it I get the following error: Cannot read property __expo_module_name__ of undefined.

So digging around on google I found some posts that suggest some library or version incompatibility which is why I was checking my expo version. expo --versionreturns WARNING: The legacy expo-cli does not support Node +17. Migrate to the versioned Expo CLI (npx expo). 6.3.2

Could this be the cause for the error? How can I upgrade to the version Expo CLI?

As I'm a beginner I appreciate all the help I can get, thank you!

edit. updated my understanding a little, please correct me if I'm wrong. So if I run npx expoand then the command it should always take the latest version of expo anyway, right?

🌐
DevCamp
devcamp.com › trails › mobile-development-react-native › campsites › authentication-react-native › guides › upgrading-expo-cli-npm-terminal
Upgrading the Expo CLI and Npm from the Terminal
So it's npm install dash g remember that's because we want this package installed globally, and then expo dash cli. So, all you have to do is run that command and Node is gonna go up, it's gonna grab that package, and it's going to install it. So, I'm gonna fast forward it, and let's just, ...
🌐
npm
npmjs.com › package › @expo › cli
expo/cli
The Expo CLI. Latest version: 54.0.19, last published: 7 days ago. Start using @expo/cli in your project by running `npm i @expo/cli`. There are 6 other projects in the npm registry using @expo/cli.
      » npm install @expo/cli
    
Published   Dec 11, 2025
Version   54.0.19
Author   Expo
🌐
npm
npmjs.com › package › expo-cli
expo-cli - npm
Granular tokens are now limited to 90 days and require 2FA by default. Update your CI/CD workflows to avoid disruption. Learn more.× ... Author message:The global Expo CLI has been superseded by 'npx expo' and eas-cli –– Learn more: https://blog.expo.dev/the-new-expo-cli-f4250d8e3421
      » npm install expo-cli
    
Published   Jul 05, 2023
Version   6.3.10
🌐
Fig
fig.io › manual › expo-cli › upgrade
expo-cli upgrade [sdk-version] | Fig
expo-cli webhooks:update · Upgrade the project packages and config for the given SDK version · On this page · Arguments · Options ·
Find elsewhere
🌐
GitHub
github.com › expo › expo › issues › 24957
"npm install -g expo-cli" doesn't update expo-cli · Issue #24957 · expo/expo
September 16, 2023 - You must install peer dependencies yourself. npm WARN [email protected] requires a peer of ajv@^6.9.1 but none is installed. You must install peer dependencies yourself. + [email protected] added 5 packages from 8 contributors and updated 36 packages in 56.748s
Published   Oct 20, 2023
🌐
Expo Documentation
docs.expo.dev › eas-update › getting-started
Get started with EAS Update - Expo Documentation
... The eas update:configure command will update your app.json file with the runtimeVersion and updates.url properties, and add the extra.eas.projectId field if your project wasn't using any EAS services previously.
🌐
Expo Documentation
docs.expo.dev › versions › latest › sdk › updates
Updates - Expo Documentation
It communicates with the configured remote update service to get information about available updates. The expo-updates library can be automatically configured using EAS Update, which is a hosted service that manages and serves updates to your app.
🌐
GitHub
github.com › expo › expo-cli › blob › main › CHANGELOG.md
expo-cli/CHANGELOG.md at main · expo/expo-cli
[expo-cli][export] Prevent testing against bundle hashes (#3580) [cli] Add analytics to dev client commands (#3521) ... Update schema cache for SDK 41.
Author   expo
🌐
GitHub
github.com › expo › expo › issues › 21430
Trying to update to latest ExpoCLI 6.3.2. Still only recognizes legacy expo-cli! · Issue #21430 · expo/expo
January 4, 2023 - Try uninstalling the current version of Expo CLI and reinstalling it using the npm package manager instead of yarn.
Published   Feb 27, 2023
🌐
GitHub
github.com › expo › expo-cli
GitHub - expo/expo-cli: Tools for creating, running, and deploying universal Expo and React Native apps
The modern local Expo CLI is included with the expo package and does not need to be installed separately. Run it with npx expo.
Starred by 2.7K users
Forked by 479 users
Languages   TypeScript 86.3% | HTML 6.9% | JavaScript 6.8%
🌐
DhiWise
dhiwise.com › post › easy-steps-to-install-expo-cli-npm-for-your-development
How to Install Expo CLI NPM for Your Development Environment
November 14, 2024 - Learn how to quickly install Expo CLI using NPM to streamline your development process. Read our guide for step-by-step instructions!
🌐
Apptension
apptension.com › blog-posts › upgrade-react-native-in-expo
How to upgrade React Native in Expo Application? A practical guide
Here's a step-by-step guide: Update EAS CLI (if using Expo Application Services CLI): Ensure you have the latest version installed globally on your system by running the following command: npm install -g eas-cli.
🌐
GitHub
github.com › expo › expo › issues › 22747
"expo upgrade is not supported in the local CLI" is confusing · Issue #22747 · expo/expo
June 3, 2023 - Summary Currently, npx expo upgrade gives the following message. $ expo upgrade is not supported in the local CLI, please use expo-cli upgrade instead But then the global expo-cli says its deprecat...
Published   Jun 03, 2023
🌐
React Native
reactnative.dev › docs › upgrading
Upgrading to new versions · React Native
Upgrading your Expo project to a new version of React Native requires updating the react-native, react, and expo package versions in your package.json file. Expo recommends upgrading SDK versions incrementally, one at a time. Doing so will help you pinpoint breakages and issues that arise during the upgrade process.
🌐
Expo Documentation
docs.expo.dev › bare › installing-updates
Install expo-updates in an existing React Native project - Expo Documentation
Run eas update:configure to set the updates URL and projectId in app.json. ... Modify the expo section of app.json. If you created your project using npx @react-native-community/cli@latest init, you will need to add the following changes including ...