Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

npx create-react-app doesn't seem to work

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

like image 283
H-Bar Avatar asked Apr 14 '26 21:04

H-Bar


2 Answers

Run npm install -g npm to upgrade Node Package Manager

like image 113
moses selete Avatar answered Apr 16 '26 10:04

moses selete


Just create the folder npm in the directory C:\Users\dejean\AppData\Roaming.

I hope this helped you !

like image 44
Elom Avatar answered Apr 16 '26 10:04

Elom



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!