Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

using create-react-app I get EEXIST: file already exists

I am making my first react app and running command: npx create-react-app my-app and i am getting this error:

Error: EEXIST: file already exists, mkdir 'C:\Users\Deepak'

command not found: create-react-app

Can anybody please help me to resolve this error?

like image 359
061_Deepak Singh Rawat Avatar asked Jul 31 '26 07:07

061_Deepak Singh Rawat


2 Answers

Follow these steps, it will definitely work:

  1. npm uninstall -g create-react-app
  2. npm install -g create-react-app
  3. npx create-react-app the-name-of-your-app
like image 149
Rithik Rawat Avatar answered Aug 02 '26 20:08

Rithik Rawat


I do have space in my UserName folder so I tried this run the command

npm config edit

set the variable cache=C:\Users\{UserName} and save the file

This work in my case, hope it will help u too

like image 36
Deepak Das Avatar answered Aug 02 '26 20:08

Deepak Das



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!