try to use vite instead by following these instructions:
to start a vite application run this command: npm create vite@latestvite will ask you some questions:
project name
what framework/library do you will use in your case you will choose react
do you will it with typescript or javascript ( there is the SWC version for each one of them, SWC uses a different compiler that makes things a little bit quicker so i recommend using SWC version )
then you should go to the project and run npm install
now you can run npm run dev and start using react
there is no difference if you used npx create-react-app my-app or npm create vite@latest the difference that you use vite with react
2
Answers
try to use vite instead by following these instructions:
npm create vite@latest
vite will ask you some questions:npm install
now you can run
npm run dev
and start using reactthere is no difference if you used
npx create-react-app my-app
ornpm create vite@latest
the difference that you use vite with reactHave you installed node and npm?