I am trying to create a React app boiler plate by running the following command
npx create-react-app my-app
I get the following errors
npm ERR! code ENOENT
npm ERR! syscall lstat
npm ERR! path C:\Users\dejean\AppData\Roaming\npm
npm ERR! errno -4058
npm ERR! enoent ENOENT: no such file or directory, lstat 'C:\Users\dejean\AppData\Roaming\npm'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\dejean\AppData\Local\npm-cache\_logs\2023-06-27T18_53_22_682Z-debug-0.log
I use node 18.16.1 and npm 9.5.1
Run
npm install -g npm
to upgrade Node Package Manager
Just create the folder npm in the directory C:\Users\dejean\AppData\Roaming.
I hope this helped you !
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With