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 Overflowalthough 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!
Videos
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?
» npm install expo-cli
» npm install @expo/cli
Hello, Im new with react native, Im trying to run the expo but im getting this error but when
Im going to upgrade expo especially the sdk another error appeared it says: Failed to install expo package with error: npm exited with non-zero code:1 On my macbook. Please help!! 😭 if you know how to resolve this.