Creating a react app in Vs Code but it did not create

i am newbie in react. I want to create a react application in VS code but it can't create it.#

4

3 Answers

It does not matter what you use to create a react app. The steps are:

  1. Install node for your system from
  2. Open Visual Studio Code, click on "terminal" on top menu, click on "new terminal", it should open a terminal on the bottom of VS code.
  3. Enter the following commands:
npx create-react-app my-app cd my-app npm start 

to create the react application and start it. Happy coding!

EDIT: if you are having issues running it, it may be that you installed create-react-app globally which does not work now. Here are the steps to verify it:

  1. uninstall create-react-app: npm uninstall -g create-react-app
  2. clear cache: npm cache verify
  3. use npx: npx create-react-app app-name

you can create an app using npx for more infos check documentation here

This is the usual procedure to create a new react app.

  1. Install React from
  2. Go to the terminal and type npx create-react-app
  3. then code . (to open the project in vs code)
1

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like