When I try installing expo using npm install -g expo-cli, it gets stuck for hours here - expo-cli error
npm WARN deprecated @hapi/joi@17.1.1: joi is leaving the @hapi organization and moving back to 'joi' (https://github.com/sideway/joi/issues/2411) [..................] \ fetchMetadata: WARN deprecated @hapi/joi@17.1.1: 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