although this solution is not the best and the safest solution exists, this worked for me and that make sense because all the problem we had with the errors is the permission problems. so you can use this command and ignore those permission problems :
sudo npm install expo-cli -g --unsafe-perm
Answer from Zhivar Sourati on Stack Overflow
» npm install expo-cli
react native - Can't run "npm install expo-cli --global" - Stack Overflow
Why cant i install expo?
I need to install Expo but I already have React Native CLI setup on Mac I need to do working with both projects
Building react native expo app after running prebuild
How do I update Expo CLI to the latest version?
Is Expo CLI suitable for building production-ready apps?
Can I use Expo CLI for existing React Native projects?
Videos
although this solution is not the best and the safest solution exists, this worked for me and that make sense because all the problem we had with the errors is the permission problems. so you can use this command and ignore those permission problems :
sudo npm install expo-cli -g --unsafe-perm
I was having the same problem with npm install -g expo-cli, having "MODULE_NOT_FOUND",
I installed yarm with brew, just in case you do not already have it:
brew install yarn
and then use:
yarn global add expo-cli
to create a project you can:
expo init nameOfTheNewProject
and choose a template in the console. Finally run the project with
yarn start
Let me know if it works for you!
I need to install Expo but I already have React Native CLI setup on Mac I need to do work with both projects