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

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

Maya Lin-Takahashi

Maya Lin-Takahashi

Consumer Tech & Gadget Reviewer

Maya is a hardware enthusiast who tests and reviews smart home devices, smartphones, wearables, and audio gear. She focuses on practical consumer value and build quality.

Share this article
Twitter Facebook Pinterest