Okay so after a bit of research and the error I got now it is clear that this is a problem from npm so I just installed react-native-cli instead of expo-cli and it worked.

thanks for the support.

Answer from The Destroyer on Stack Overflow
🌐
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 ...
🌐
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.
🌐
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
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 ·
🌐
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
Find elsewhere
🌐
Web530
web530.ca › environment-setup › expo-windows
Windows IDE Setup
Open the Terminal window. You can click on the ... New Terminal. Type the command: npm install -g expo-cli You may notice some modules are deprecated, this is normal and you shouldn't cause issues.
🌐
Restack
restack.io › p › expo-cli-knowledge-download-expo-cli-for-windows
Download Expo CLI For Windows | Restackio
This command will enable the Windows Subsystem for Linux feature, allowing you to run Linux distributions alongside your Windows applications. Once WSL is enabled, you can install Expo CLI.
🌐
Medium
karuppan-the-pentester.medium.com › react-native-expo-installation-in-windows-11-f3e8a28c30ec
React Native Expo Installation in Windows 11 | by Karuppasamy Karuppiah | Medium
August 3, 2023 - First go to the NodeJs website and download the latest NodeJs Installer and install the NodeJs on windows. ... It gives the output as the version name. To install expo-cli , open command prompt in administrator mode and the paste the command ...
🌐
GitHub
github.com › expo › expo-cli › issues › 650
Cannot install expo-cli global (windows 10) · Issue #650 · expo/expo-cli
May 25, 2019 - Excluding it from installation. info @expo/[email protected]: The CPU architecture "x64" is incompatible with this module. info [email protected]: The platform "win32" is incompatible with this module. info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation. [3/4] Linking dependencies... warning "expo-cli > @expo/[email protected]" has incorrect peer dependency "@expo/xdl@^53.8.0".
Published   May 25, 2019
🌐
Expo Documentation
docs.expo.dev › bare › using-expo-cli
Migrate from React Native CLI to Expo CLI - Expo Documentation
It does not yet have built-in support for the most popular out-of-tree platforms, such as Windows and macOS. If building for these platforms, you can utilize Expo CLI for the supported platforms and @react-native-community/cli for the others. After installing the expo package, you can use the following commands which are alternatives to npx react-native run-android and npx react-native run-ios:
🌐
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.
🌐
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%
🌐
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
🌐
Stack Overflow
stackoverflow.com › questions › 71977351 › expo-cli-wont-install
react native - Expo cli wont install - Stack Overflow
I can't install expo on a new pc i'm using Windows 10 and already installed node but when i use npm install --global expo-cli cmd says that expo isnt a recognized command, i was running as and adm...