Intenté instalar ReactJS en una Mac M1 pero me encontré con este error:
prabhav@Prabhavs-MacBook-Air ~ % node --version
v18.17.1
prabhav@Prabhavs-MacBook-Air ~ % npm --version
9.6.7
prabhav@Prabhavs-MacBook-Air ~ % npm install -g create-react-app
npm ERR! code ENOENT
npm ERR! syscall mkdir
npm ERR! path /path
npm ERR! errno -2
npm ERR! enoent ENOENT: no such file or directory, mkdir '/path'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! Log files were not written due to an error writing to the directory: /path/to/your/directory/_logs
npm ERR! You can rerun the command with `--loglevel=verbose` to see the logs in your terminal
Ruta de node y npm: /usr/local/bin
ruta añadida a .zshrs
: export PATH="$PATH:/usr/local/bin"