@juniorthelb Here are a couple of things you could try:
- Install Node with
nvm
and set it to be your default version of Node. If you installed Node with the installer from nodejs.org I’d recommend removing it. In the past at least, that copy of Node required runningsudo
to install global modules. I find that usingnvm
or Homebrew’s versions of Node are easier to work with. - If you use
nvm
, make sure that it’s set up to run each time you open a new shell. For example, if you open a new terminal window and runwhich node
, you should get something like/Users/you/.nvm/versions/node/v8.8.1/bin/node
. - Try using Yarn instead of npm.
- Delete
node_modules
and runyarn
to install them again. Once things are in a working state, commityarn.lock
to Git/Mercurial/whatever. - Install Watchman on your computer with
brew install watchman
. - Clear several caches related to the React Native packager, instructions here.