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
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.
🌐
npm
npmjs.com › package › expo-cli
expo-cli - npm
If you have problems with the code in this repository, please file issues & bug reports at https://github.com/expo/expo-cli. Thanks! Installation instructions and documentation here.
      » npm install expo-cli
    
Published   Jul 05, 2023
Version   6.3.10
People also ask

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
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
🌐
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!
🌐
Expo Documentation
docs.expo.dev › bare › using-expo-cli
Migrate from React Native CLI to Expo CLI - Expo Documentation
It is strongly recommended to use Expo CLI when using other Expo tools. It is required for many tools, such as EAS Update, Expo Router, and expo-dev-client, and other features may not work as well without it. In most cases, executing the following command in a project directory to install the ...
🌐
Expo
expo.dev › tools
Get Expo Tools — Expo
Expo CLI · The interface between devs and Expo · View Expo CLI on GitHub · Expo SDK · Device and system functionality features · API References · Expo Go · Run your project on your own device · Download · Orbit · A desktop app that streamlines development ·
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!
🌐
npm
npmjs.com › package › @expo › cli
expo/cli
Installing versioned libraries with npx expo install this is a minimal utility born out of pure necessity since versioning in React Native is hard to get right. ... We highly recommend setting up an alias for the Expo CLI so you can try it in projects all around your computer.
      » npm install @expo/cli
    
Published   Dec 11, 2025
Version   54.0.19
Author   Expo
🌐
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.
🌐
DevCamp
devcamp.com › trails › mobile-development-react-native › campsites › getting-started-react-native › guides › installing-expo-generating-application
Installing Expo and Generating the Application
I already have it installed and I have it installed globally so I don't have to worry about that. It's just gonna tell me that it's either gonna upgrade me or it's just gonna tell me that I already have that installed. So that is the command for installing the Expo CLI.
🌐
Expo Documentation
docs.expo.dev › bare › installing-expo-modules
Install Expo modules in an existing React Native project - Expo Documentation
The last step is to install the project's CocoaPods again to pull in Expo modules that are detected by use_expo_modules! directive that we added to the Podfile: ... We recommend using Expo CLI and related tooling configurations to bundle your app JavaScript code and assets.
🌐
Expo Documentation
docs.expo.dev › get-started › installation
Create a project - Expo Documentation
We recommend starting with the default project created by create-expo-app.
🌐
Fig
fig.io › manual › expo-cli
expo-cli | Fig
expo-cli client:install:ios · expo-cli client:install:android · expo-cli credentials:manager · expo-cli customize:web · expo-cli eject · expo-cli prebuild · expo-cli bundle-assets · expo-cli prepare-detached-build · expo-cli export · expo-cli fetch:ios:certs ·
🌐
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
When you use this tool to kick-start your project, it handles the creation of all of the scaffolding that your project needs to run a basic React Native application. Additionally, Expo has a couple of other tools that make running our app during development nice and straightforward. But, first, we need to install the Expo command-line tool:
🌐
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 ...