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
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".
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With