although this solution is not the best and the safest solution exists, this worked for me and that make sense because all the problem we had with the errors is the permission problems. so you can use this command and ignore those permission problems :

sudo npm install expo-cli -g --unsafe-perm
Answer from Zhivar Sourati on Stack Overflow
🌐
Expo Documentation
docs.expo.dev › more › expo-cli
Expo CLI - Expo Documentation
--npm: Use npm to install dependencies. Default when package-lock.json exists. --pnpm: Use pnpm to install dependencies. Default when pnpm-lock.yaml exists. --yarn: Use yarn to install dependencies.
🌐
npm
npmjs.com › package › expo-cli
expo-cli - npm
The command-line tool for creating and publishing Expo apps. Latest version: 6.3.10, last published: 2 years ago. Start using expo-cli in your project by running `npm i expo-cli`. There are 29 other projects in the npm registry using expo-cli.
      » npm install expo-cli
    
Published   Jul 05, 2023
Version   6.3.10
People also ask

Can I use Expo CLI for existing React Native projects?
Yes, you can integrate Expo into existing React Native projects to leverage its tooling and features, enhancing your development workflow.
🌐
dhiwise.com
dhiwise.com › post › easy-steps-to-install-expo-cli-npm-for-your-development
How to Install Expo CLI NPM for Your Development Environment
How do I update Expo CLI to the latest version?
To update Expo CLI, run npm install -g expo-cli in your terminal. This command ensures you have the latest features and improvements.
🌐
dhiwise.com
dhiwise.com › post › easy-steps-to-install-expo-cli-npm-for-your-development
How to Install Expo CLI NPM for Your Development Environment
Is Expo CLI suitable for building production-ready apps?
Absolutely. Expo CLI streamlines the development process, from coding to deployment, making it an excellent choice for creating production-ready applications.
🌐
dhiwise.com
dhiwise.com › post › easy-steps-to-install-expo-cli-npm-for-your-development
How to Install Expo CLI NPM for Your Development Environment
🌐
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 - Running the installation command as an administrator or checking your network settings can often resolve common problems. The Expo community and documentation are also excellent resources for troubleshooting. With Expo CLI installed, you're ready to create your first React Native project.
🌐
npm
npmjs.com › package › @expo › cli
@expo/cli - npm
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
🌐
Expo Documentation
docs.expo.dev › bare › using-expo-cli
Migrate from React Native CLI to Expo CLI - Expo Documentation
If you want to try out Expo CLI for now without installing Expo Modules API, install the expo package with npm install and then configure the react-native.config.js to exclude the package from ...
🌐
Medium
medium.com › @malihanadeem881 › install-react-native-expo-cli-today-a-comprehensive-guide-cbb349478d4e
Install React Native Expo CLI Today: A Comprehensive Guide | by Maliha Nadeem | Medium
October 31, 2023 - Installation: After downloading Node.js, run the downloaded installer and follow the on-screen instructions. This will also install npm.
Find elsewhere
🌐
NotJust
notjust.dev › blog › 2021-11-04-expo-development-environment-setup-for-first-react-native-project-windows
Expo Development Environment Setup on Windows
To install Expo CLI, you simply have to open the terminal and type npm install --global expo-cli. That's it, it's that easy!
🌐
Expo Documentation
docs.expo.dev › bare › installing-expo-modules
Install Expo modules in an existing React Native project - Expo Documentation
The expo package has a small footprint; it includes only a minimal set of packages that are needed in nearly every app and the module and autolinking infrastructure that other Expo SDK packages are built with. Once the expo package is installed and configured in your project, you can use npx expo install to add any other Expo module from the SDK.
🌐
Packtpub
subscription.packtpub.com › book › web-development › 9781839211140 › 16 › ch16lvl1sec18 › installing-and-using-the-expo-command-line-tool
Installing and using the Expo command-line tool
npm install -g expo-cli · Once this installation is complete, you'll have a new expo command available on your system. To start a new project, we can run the expo init command, as follows: expo init my-project · In this case, the name of the ...
🌐
Expo Documentation
docs.expo.dev › develop › tools
Tools for development - Expo Documentation
Expo CLI is a development tool and is installed automatically with expo package when you create a new project.
🌐
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%
🌐
YouTube
youtube.com › watch
Installing Expo CLI, making an app, running the app - YouTube
Video #2:In this video I will show how to install expo-cli and create a new project. After that we will run the project with the tunneling command and then ...
Published   December 19, 2024
🌐
npm
npmjs.com › package › expo
expo - npm
The expo package is a single package you can install in any React Native app to begin using Expo modules. API Reference. includes core infrastructure for Expo modules: expo-modules-core and expo-modules-autolinking. bundles a minimal set of Expo modules that are required by nearly every app, such as expo-asset. provides @expo/cli, a small CLI that provides a clean interface around both bundlers (such as Metro and Webpack) and native build tools (Xcode, Simulator.app, Android Studio, ADB, etc.), can generate native projects with npx expo prebuild, and aligns compatible package versions with npx expo install.
      » npm install expo
    
Published   Dec 12, 2025
Version   54.0.29
Author   Expo
🌐
GitHub
github.com › expo › expo › issues › 24957
"npm install -g expo-cli" doesn't update expo-cli · Issue #24957 · expo/expo
September 14, 2023 - When I run npm install -g expo-cli it successfully completes the update.
Published   Oct 20, 2023
🌐
Educative
educative.io › answers › how-to-setup-react-native-with-expo-on-ubuntu
How to setup React Native with Expo on Ubuntu
Node.js and npm must be installed prior to setup. A smartphone to download the Expo mobile application. Run the following command in your Ubuntu terminal to install the command line interface (CLI) of Expo:
🌐
Medium
riyagoel192.medium.com › installing-react-native-expo-cli-in-windows-d4b4d9eae524
Installing React Native Expo CLI in Windows | by Riya Goel | Medium
August 11, 2020 - Proceed to the third step by opening your Command prompt(CMD) and paste the given command in Step3 (npm install expo-cli — global) in your cmd. Doing this will help you install Expo CLI globally on your machine which will help you manage build ...
🌐
npm
npmjs.com › package › install-expo-modules
install-expo-modules - npm
expo install expo-device # the expo command is from expo-cli. if you don't have this, run `npm -g install expo-cli` to install.
      » npm install install-expo-modules
    
Published   Dec 08, 2025
Version   0.13.14