Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Expo gets stuck during install with npm but installs with yarn and doesn't work

When I try installing expo using npm install -g expo-cli, it gets stuck for hours here - expo-cli error

npm WARN deprecated @hapi/[email protected]: joi is leaving the @hapi organization and moving back to 'joi' (https://github.com/sideway/joi/issues/2411) [..................] \ fetchMetadata: WARN deprecated @hapi/[email protected]: joi is leaving the @hapi organization and moving back to 'joi' (https://github.com/sideway/joi/

But when I use yarn to install expo, it says expo is installed successfully. But it doesn't work when I type expo --version or just expo in cmd.

I've tried changing the environment path I've uninstalled and reinstalled node I've tried npm cache clean --force

like image 295
Stephen Murya Avatar asked Oct 19 '25 21:10

Stephen Murya


1 Answers

npm install --global expo-cli --force

That's what did it for me. Same errors at the beginning of the installation attempt, but afterwards it ignored the issues and installed it anyways. And it works just fine. Though, usually you should be careful with " --force".

like image 92
BVD Avatar answered Oct 22 '25 12:10

BVD



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!