0

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

yousoumar
  • 7,434
  • 4
  • 9
  • 33
  • 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

0

First make sure you are using the recommended version of nodejs, which is currently 16.13.1. For that you can use the n module :

// if you haven't istalled 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
yousoumar
  • 7,434
  • 4
  • 9
  • 33
  • thanks for the help...... it dint work for me – Monika Vurigity Jan 08 '22 at 10:11
  • i shall past the error below – Monika Vurigity Jan 08 '22 at 10:11
  • such as @graphql-tools/schema, @graphql-tools/utils and etc.\nCheck out https://www.graphql-tools.com to learn what package you should use instead npm ERR! code EEXIST npm ERR! path /usr/local/bin/expo npm ERR! EEXIST: file already exists npm ERR! File exists: /usr/local/bin/expo npm ERR! Remove the existing file and try again, or run npm npm ERR! with --force to overwrite files recklessly. npm ERR! A complete log of this run can be found in: npm ERR! /Users/monikavurigity/.npm/_logs/2022-01-08T10_09_17_698Z-debug-0.log – Monika Vurigity Jan 08 '22 at 10:11
  • I edited my answer. It may work this time. Take a look. – yousoumar Jan 08 '22 at 10:15
  • its the same error again npm ERR! code EEXIST npm ERR! path /usr/local/bin/expo npm ERR! EEXIST: file already exists npm ERR! File exists: /usr/local/bin/expo npm ERR! Remove the existing file and try again, or run npm npm ERR! with --force to overwrite files recklessly. npm ERR! A complete log of this run can be found in: npm ERR! /Users/monikavurigity/.npm/_logs/2022-01-09T08_02_14_367Z-debug-0.log – Monika Vurigity Jan 09 '22 at 08:06
  • What is your Nodejs version ? Tape `node -v` in your terminal to know. – yousoumar Jan 09 '22 at 10:22
  • You are not using the recommended stable version of `nodejs`, that may be why. I edited my answer, take a look. – yousoumar Jan 10 '22 at 06:46
  • this worked!!! thanks a lot – Monika Vurigity Jan 10 '22 at 10:20