Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Expo client is not installing on Simulator

I have been using this setup for almost half a year now and I upgraded the Expo SDK to 44 (erased all content and settings on the simulator). Ever since, the expo client won't install on the simulator.

Things I have tried:

  • run expo client:install:ios
  • uninstall and reinstall expo
  • uninstall and reinstall watchman
  • tried different simulators (15.0 that I used so far)
  • creating a new blank expo project
  • open the simulator first and then npm start
  • I even did a complete MacBook reset (factory, needed to wipe anyway) and reinstalled following the expo documentation.

I read something about installing expo without sudo, but then it will throw errors and will simply not install.

New blank expo project infos:

Expo : 44.0.0 expo-cli: 5.0.3 react-native: 0.64.3

Hope someone knows the solution to this, I really want to get back programming.

like image 457
CrypticalMindz Avatar asked Dec 17 '25 23:12

CrypticalMindz


2 Answers

I had the same problem. Turns out using sudo when installing expo-cli is the issue. Run the following commands to resolve it.

npm uninstall -g expo-cli
npm install -g expo-cli

Then from your Mac's user's directory in a new terminal, run the following:

mkdir apps
cd apps
expo init app-name

Once this finishes, it should work just fine after running npm start.

like image 67
mercify Avatar answered Dec 20 '25 17:12

mercify


As @Mercify said, sudo was indeed the problem.

For future reference: if installing expo without sudo throws an error, it is nessecary to change "the owner" of the folder "/usr/.../node_modules" to your user. This post helps changing the owner.

Error: EACCES: permission denied, access '/usr/local/lib/node_modules'

Expo is now installing on the Simulator. Thanks to @Mercify.

like image 36
CrypticalMindz Avatar answered Dec 20 '25 16:12

CrypticalMindz



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!