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
🌐
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
🌐
Educative
educative.io › answers › how-to-setup-react-native-with-expo-on-ubuntu
How to setup React Native with Expo on Ubuntu
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:
🌐
Stack Overflow
stackoverflow.com › questions › 61693996 › cant-install-expo-cli-using-npm-in-ubuntu-operating-system
reactjs - Can't Install expo-cli using npm in ubuntu operating system? - Stack Overflow
$ sudo npm install -g expo-cli [sudo] password for maky: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @expo/[email protected] (node_modules/expo-cli/node_modules/@expo/traveling-
🌐
AwesomeReactNative
awereactnative.com › awesomereactnative › how to's
How to setup React Native with Expo on Ubuntu | Awesome React Native
June 13, 2022 - To install Expo’s command line interface (CLI), type the following command in your Ubuntu terminal:
🌐
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.
🌐
GitHub
github.com › expo › expo-cli › issues › 591
Expo CLI cant be installed in Linux · Issue #591 · expo/expo-cli
February 14, 2019 - Also, this only happens since latest expo cli, previously it worked fine. ... ]$ sudo npm install -g expo-cli npm WARN deprecated [email protected]: This version has been deprecated in accordance with the hapi support policy (hapi.im/support).
Published   May 08, 2019
Find elsewhere
🌐
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
🌐
GitHub
github.com › expo › expo-cli › discussions › 590
Can't install expo-cli · expo/expo-cli · Discussion #590
... iMac-Sergej:~ sergejanohin$ sudo npm install -g expo-cli Password: npm WARN deprecated [email protected]: This version has been deprecated in accordance with the hapi support policy (hapi.im/support).
Author   expo
🌐
GitHub
github.com › expo › expo-cli › issues › 4622
Expo-cli not installing in Ubuntu 22.04 and not working with [email protected] · Issue #4622 · expo/expo-cli
October 20, 2022 - Summary expo-cli isn't working with [email protected] and needs updating. Please provide more info. Environment npm install -g expo-cli Please specify your device/emulator/simulator platform, model and version Ubuntu 22.04, Node JS 18.13.0 ...
Published   Jan 10, 2023
🌐
Medium
medium.com › featurepreneur › install-react-native-using-expo-cli-in-just-5-easy-steps-c3eb5b863a60
Install React Native using expo-cli in just 5 easy steps! | by Ishita Gopalakrishnan | featurepreneur | Medium
February 8, 2022 - 4) Install expo-cli · sudo npm install — global expo-cli · 5) In order to run your app, go to the respective directory and run the following command : expo start · Press enter or click to view image in full size · Picture credits :Manik ...
🌐
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:
🌐
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!