9.9 C
New York
Friday, December 8, 2023

set up – `ENOENT: no such file or listing` error when putting in ReactJS in M1 Mac


I attempted to put in ReactJS on an M1 Mac however encountered this error:

prabhav@Prabhavs-MacBook-Air ~ % node --version
v18.17.1
prabhav@Prabhavs-MacBook-Air ~ % npm --version
9.6.7
prabhav@Prabhavs-MacBook-Air ~ % npm set up -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 listing, mkdir '/path'
npm ERR! enoent That is associated to npm not having the ability to discover a file.
npm ERR! enoent 
    
npm ERR! Log recordsdata weren't written as a consequence of an error writing to the listing: /path/to/your/listing/_logs
npm ERR! You'll be able to rerun the command with `--loglevel=verbose` to see the logs in your terminal

Path of node and npm: /usr/native/bin

path added to .zshrs : export PATH="$PATH:/usr/native/bin"

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles