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?
Follow these steps, it will definitely work:
npm uninstall -g create-react-appnpm install -g create-react-appnpx create-react-app the-name-of-your-appI 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
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