For me, I used yarn instead of npm.

yarn global add sharp

Then

yarn global add expo-cli

After that, if you run

 expo

And got

expo is not a command

Which means you need to

add yarn global packages to the envirmonment variable. And your yarn global packages might in C:\Users\username\AppData\Local\Yarn\bin.

Also, I installed python 2.7 in the beginning. Not sure if it helps.

Answer from xianshenglu on Stack Overflow
🌐
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
🌐
Stack Overflow
stackoverflow.com › questions › 61399275 › installing-expo-cli-in-windows-10-ends-up-with-errors
node.js - installing expo-cli in windows 10 ends up with errors - Stack Overflow
If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial). npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142 npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @expo/[email protected] (node_modules\expo-cli\node_modules\@expo\traveling-fastlane-darwin): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @expo/[email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"ia32"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @expo/[em
🌐
GitHub
github.com › expo › expo-cli › issues › 1297
expo-cli fails install on Window 10 · Issue #1297 · expo/expo-cli
October 25, 2019 - Description expo-cli 3.9.1 fails to install on Windows 10. npm: 6.9.0 node: 10.16.0 Ran: npm install -g expo-cli Error returned npm ERR! errno 1 npm ERR! [email protected] postinstall: `test -d .git && ...
Published   Dec 04, 2019
🌐
GitHub
github.com › expo › expo-cli › issues › 1237
Missed installation requirement on Windows 10 · Issue #1237 · expo/expo-cli
You will get an error. This is node-gyp issue, that part of expo-cli dependencies. You can read here about that. Expo CLI 3.7.1 environment info: System: OS: Windows 10 Binaries: Yarn: 1.19.1 - C:\Program Files (x86)\Yarn\bin\yarn.CMD npm: 6.12.0 ...
🌐
Blogger
thecoderain.blogspot.com › 2019 › 04 › install-react-native-expo-windows.html
How to install React native expo cli properly in windows
The above command will generate package.json file Now we will install npm module that will convert our scss to css Run below command: npm install node-sass So we have installed node-sass package . Now open package.json file in your... ... Solution for expo is not recognized as an internal or external command,operable program or batch file in Windows 10 Sometimes expo will not work globally mostly in windows 10, If you are facing same issue then follow the below Steps 1) Click on windows button and search for " Environment variables" and click on "Edit the system environment variables" 2) Now you will see a popup like below screen.
Find elsewhere
🌐
GitHub
github.com › expo › expo-cli › issues › 451
Can't install expo-cli on windows 10 · Issue #451 · expo/expo-cli
For instance, this error usually deals with your npm cache. I would suggest taking a look at this StackOverflow post <https://stackoverflow.com/questions/40566348/maximum-call-stack-size-exceeded-on-npm-install> and seeing if the suggest answers help out. - When you create issues, please seek to provide as much information as possible by following the issue template provided.
Published   Mar 21, 2019
Author   isahboy1
🌐
Stack Overflow
stackoverflow.com › questions › 71662991 › hi-guys-i-want-to-install-expo-on-my-pc-windows-10-i-get-the-following-errors
node.js - Hi guys, i want to install expo on my PC (windows 10) i get the following errors - Stack Overflow
npm install --global expo-cli ... @JohnOcean i did read the message and it didn't work, I have tried to download node.js + Git again and didn't work, and i get the error in the photo i added.
🌐
Expo
forums.expo.dev › expo development tools
Expo CLI cannot install on windows 10 - Expo Development Tools - Forums
February 28, 2017 - npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! [email protected] postinstall: test -d .git && cp gitHookPrePush.sh .git/hooks/pre-push || true npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] postinstall script. npm ERR! This is probably not a problem with npm.
🌐
GitHub
github.com › expo › expo-cli › issues › 430
New Windows install, command not found · Issue #430 · expo/expo-cli
March 17, 2019 - Description New Windows install of expo-cli. The expo command is not found in the PATH, and project init doesn't work. Expected Behavior Install Run C:\Users\Oliver λ npm install expo-cli --global C:\Users\Oliver\AppData\Roaming\npm\expo...
Published   Mar 17, 2019
🌐
Stack Overflow
stackoverflow.com › questions › 73089812 › failed-to-install-expo-cli-on-windows
node.js - Failed to install expo-cli on Windows - Stack Overflow
I'm trying to create a new React Native application with the expo-cli but I can't install it or run the init command on Windows. With Node v16.16.0 and v16.15.1: > npm install -g expo-cli npm WARN
🌐
GitHub
github.com › expo › expo-cli › discussions › 590
Can't install expo-cli · expo/expo-cli · Discussion #590
You need to upgrade npm this helps me npm install npm@latest -g after npm install -g expo-cli or use yarn yarn global add expo-cli · Beta Was this translation helpful? Give feedback. ... There was an error while loading. Please reload this page. Something went wrong. There was an error while loading. Please reload this page. ... Beta Was this translation helpful? Give feedback. ... There was an error while loading. Please reload this page. Something went wrong. There was an error while loading. Please reload this page. ... For Windows 10, I found a solution which should work in any case.
Author   expo
🌐
Expo
forums.expo.dev › expo sdk
Expo CLI 2.0 not installing on Windows 10 with npm - Expo SDK - Forums
May 10, 2017 - I’m running Windows 10. I’m getting the following error when running: npm install -g expo-cli npm ERR! Error: EPERM: operation not permitted, rename 'C:\Users\username\AppData\Roaming\npm\node_modules\expo-cli\node_mod…
🌐
GitHub
github.com › expo › expo-cli › issues › 2439
Unable to install expo-cli · Issue #2439 · expo/expo-cli
March 15, 2020 - Description I am unable to install expo client using the command npm install -g expo-cli. Expected Behavior Ideally is should be installed without errors. Observed Behavior @Expo/config 3.2.17 no matching package found · Environment I am installing it on windows 10 64-bit machine.
Published   Aug 08, 2020
🌐
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 - Doing this will help you install Expo CLI globally on your machine which will help you manage build React Native apps. You can use it anywhere on your machine and from anywhere in the terminal. You can ignore all the in-between errors and warnings and wait for the installation to finish.