1

I have followed the documentation from Expo website, installed NodeJs, git, watachmann, however I m still getting errors when installing Expo cli:

enter image description here

Youssouf Oumar
  • 29,373
  • 11
  • 46
  • 65
  • Welcome to StackOverflow! Please consider [not uploading images of code/errors when asking a question](//meta.stackoverflow.com/q/285551). Also your question looks similar to the following question, does that answer yours? [Error: EACCES: permission denied, access '/usr/local/lib/node\_modules'](https://stackoverflow.com/questions/48910876/error-eacces-permission-denied-access-usr-local-lib-node-modules) – Wing Jan 08 '22 at 10:09

1 Answers1

1

First, ensure you use the recommended version of nodejs. For that, you can use the n module:

// if you haven't installed it before 
sudo npm install n -g 
//to have the latest stable version
sudo n stable

Then delete all your preview installs with npm and start over. For expo-cli:

sudo npm uninstall --global expo-cli
sudo npm install --global expo-cli
Youssouf Oumar
  • 29,373
  • 11
  • 46
  • 65