skip to Main Content

I am new to React, and while trying to create an app on VS Code but I am unable to do so and I getting the following error:-
enter image description here

Can somebody please tell me what I am doing wrong, I have already installed node.js and npm and they have been installed successfully.

2

Answers


  1. try to use vite instead by following these instructions:

    1. to start a vite application run this command: npm create vite@latest vite will ask you some questions:
    2. project name
    3. what framework/library do you will use in your case you will choose react
    4. 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 )
    5. 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

    Login or Signup to reply.
  2. Have you installed node and npm?

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search