Skip to content
geeksforgeeks
  • Tutorials
    • Python
    • Java
    • Data Structures & Algorithms
    • ML & Data Science
    • Interview Corner
    • Programming Languages
    • Web Development
    • CS Subjects
    • DevOps And Linux
    • School Learning
    • Practice Coding Problems
  • Courses
    • DSA to Development
    • Get IBM Certification
    • Newly Launched!
      • Master Django Framework
      • Become AWS Certified
    • For Working Professionals
      • Interview 101: DSA & System Design
      • Data Science Training Program
      • JAVA Backend Development (Live)
      • DevOps Engineering (LIVE)
      • Data Structures & Algorithms in Python
    • For Students
      • Placement Preparation Course
      • Data Science (Live)
      • Data Structure & Algorithm-Self Paced (C++/JAVA)
      • Master Competitive Programming (Live)
      • Full Stack Development with React & Node JS (Live)
    • Full Stack Development
    • Data Science Program
    • All Courses
  • React Tutorial
  • React Exercise
  • React Basic Concepts
  • React Components
  • React Props
  • React Hooks
  • React Router
  • React Advanced
  • React Examples
  • React Interview Questions
  • React Projects
  • Next.js Tutorial
  • React Bootstrap
  • React Material UI
  • React Ant Design
  • React Desktop
  • React Rebass
  • React Blueprint
  • JavaScript
  • Web Technology
Open In App
Next Article:
How to Install ReactJS on Windows: Step-by-Step Guide
Next article icon

How to Install ReactJS on Windows: Step-by-Step Guide

Last Updated : 18 Apr, 2025
Comments
Improve
Suggest changes
Like Article
Like
Report

ReactJS has become one of the most popular JavaScript libraries for building dynamic and interactive user interfaces, powering some of the biggest websites and applications across the web. If you're a Windows user eager to dive into React development, setting up your environment properly is the first step toward success. Installing ReactJS on Windows may seem daunting at first, but with the right guidance, it’s a straightforward process that opens the door to endless possibilities in web development.

In this blog post, we’ll walk you through a step-by-step guide to installing ReactJS on your Windows system. From setting up essential tools like Node.js and npm (Node Package Manager) to creating your first React application using Create React App, we’ll cover everything you need to get started. Whether you’re a beginner or an experienced developer, this guide will help you set up a seamless React development environment tailored for both Windows 10 and Windows 11 users.

Prerequisites to Install ReactJS

Before you start setting up React on your Windows machine, it's important to ensure you have the following essentials in place:

Administrator Access

Administrator privileges are required to install software and make system-wide changes on your Windows machine.

  • Installing tools like Node.js and npm modifies system files and environment variables.
  • Without administrator access, you might face permission errors during the installation process.

To check if you have administrator access: Right-click on the Start Menu and select Settings > Accounts > Your Info

Note: If you're using a standard account, you'll need to log in with an admin account or request permissions from the administrator.

Internet Connection

A stable internet connection is required to:

  • Download the latest version of Node.js, which includes npm, from the official website.
  • Fetch React’s dependencies during the app creation process.

Tip: If you experience slow or unstable connectivity, consider downloading offline installers for tools like Node.js or using a faster network to complete the installation process without interruptions.

System Requirements

Your computer should meet the minimum hardware and software requirements:

  • RAM : At least 4 GB (8 GB or more is recommended for better performance) 3.
  • Storage : At least 10 GB of free space on your hard disk to accommodate Node.js, npm, and project files.
  • Operating System : Windows 10 or 11, macOS 10.10, or Ubuntu 16 (or higher versions) for optimal compatibility and performance

Steps to Install React on Windows

Follow these Steps to Install React.js and Create a React App on Windows 10/11:

Step 1: Install Node.js

React relies on Node.js and its package manager, npm, to manage dependencies. To install React, start by installing Node.js, which includes npm (Node Package Manager).

  • Visit the official Node.js website.
  • Download the LTS (Long Term Support) version for Windows. This version is stable and recommended for most users.

Note: Node.js® is a free, open-source, and cross-platform runtime environment for JavaScript. It enables developers to build servers, web applications, command-line tools, and scripts, all using JavaScript outside of a browser.

download and install node
Install Node.js

Step 2: Run the Installer

  • Locate the downloaded .msi file and double-click to run it.
  • Follow the prompts in the setup wizard, accept the license agreement, and use the default settings for installation.

Step 3: Verify Node.js Installation

Open Command Prompt or PowerShell > Check the installed versions by running these commands:

  • Type node -v and press Enter to check the Node.js version.
  • Type npm -v and press Enter to check the npm version.
  • Both commands should return version numbers, confirming successful installation.
verify node version
Verify Node.js Installation

Step 4: Install CRA (Deprecated Alternative)

Create React App (CRA) has been officially deprecated in 2023 and is no longer the recommended method for starting React projects. Instead, tools like Vite or Next.js are now preferred for creating React applications due to better performance and modern features. However, if you still want to use it, follow these steps:

1. Install CRA Globally

npm install -g create-react-app  
install create-react-app
Install CRA

Additional Tip:

  • However, it’s better to switch to newer tools like Vite, Next.js, or even CRA alternatives for a more optimized development experience.

2. Verify the installation

It will globally install react app for you. To check everything  went well run the command  

create-react-app --version
Screenshot-2024-09-10-110003

If everything went well it will give you the installed version of react app

Step 5: Create Directory for React Projects

1. Create a New Folder

Create a new folder where you want your React app, use the following command:

mkdir newfolder

Note: The newfolder in the above command is the name of the folder and can be anything.

Screenshot-2024-09-10-110140

2. Move inside the folder

Move inside the same folder using the below command:

cd newfolder (your folder name)
creating folder

Step 6: Create the React App Using CRA Command

If you're using CRA:

Run the following command to create a React app:

npx create-react-app reactfirst

Note:

  • The app name must be in lowercase due to npm naming restrictions.
  • This command installs all required dependencies and sets up your app.
create-react-app

It will take some time to install the required dependencies

Note: Due to npm naming restrictions, names can no longer contain capital letters, thus type your App name in lowercase.

install-required-dependencies

If using Vite:

Use the following command

npm create vite@latest reactfirst -- --template react

Step 7: Open the Project in a Code Editor

Now open the IDE of your choice for eg.  Visual studio code and open the folder where you have installed the react app newfolder (in the above example)  inside the folder you will see your app's name reactapp (In our example). Use the terminal and move inside your app name folder.

Use the following command:

cd reactapp (your app name)
React Project in VSCode

Step 8: Run the React App

Start the development server by running:

npm start  
npm start

Once you run the above command, a new browser tab will open, displaying the default React page with the React logo.

open-browser

Congratulation! You have successfully installed the react-app and are ready to build awesome websites and app. Whether you used CRA, Vite, or another tool, you’re now ready to start building dynamic web applications. Explore React’s features like components, state, and props to create amazing projects.

Also Read:

  • React Introduction
  • How to create a website in React JS ?
  • What are React Components?

Boost Your React Development Skills with the React JS Course

Take your React development expertise to the next level by enrolling in the React JS Course offered by GeeksforGeeks. This complete course offers installation process, covering essential topics like components, state management, and routing. With hands-on projects and real-world applications, you’ll gain practical experience to confidently build dynamic, high-performance web applications. Equip yourself with the skills needed to excel in modern web development.

Conclusion

By following the steps in this guide, you now have a fully functional React development environment on Windows PC or Laptop. Whether you used Create React App (CRA), Vite, or another modern tool, you’re ready to start building dynamic, high-performance web applications. React offers endless possibilities for creating interactive user interfaces, and now that your setup is complete, you can explore its core concepts like components, props, state, and hooks. Remember to keep your tools updated and consider using modern frameworks like Vite or Next.js for future projects to stay aligned with the latest best practices in web development.


Next Article
How to Install ReactJS on Windows: Step-by-Step Guide

B

bt011singh
Improve
Article Tags :
  • TechTips
  • Web Technologies
  • How To
  • ReactJS
  • Installation Guide
  • TrueGeek
  • TrueGeek-2021
  • how-to-install

Similar Reads

    How to Install WebStorm on Windows?
    WebStorm is a cross-platform integrated development environment (IDE) and is used for developing web applications in React, Vue, Angular, Express, Php, Meteor, Ruby, etc. It has been maintained by Jetbrains since its launch and is primarily written in Java. As one of the most popular JavaScript IDEs
    2 min read
    How to Install Node.js on Windows
    Installing Node.js on Windows is a straightforward process, but it's essential to follow the right steps to ensure smooth setup and proper functioning of Node Package Manager (NPM), which is crucial for managing dependencies and packages. This guide will walk you through the official site, NVM, Wind
    6 min read
    How to Install and Use NVM on Windows
    NVM or Node Version Manager is a command-line tool that allows developers to manage multiple versions of Node.js on a single machine. This function offers the flexibility to work on different projects and versions of Node.js. In this guide, we'll walk you through the steps to install and use NVM on
    3 min read
    How to Install ReactJS on Linux
    Installing ReactJS on a Linux system is the first step toward building dynamic, interactive web applications. ReactJS, a popular JavaScript library developed by Facebook, is widely used for creating user interfaces. Setting it up on Linux ensures a smooth development environment for building and run
    6 min read
    How to Install ReactJS on MacOS
    Are you looking to set up ReactJS on your Mac? Whether you’re using a MacBook Air, MacBook Pro, iMac, or any macOS version like Monterey, Ventura, Big Sur, or macOS 15 Sequoia, this step-by-step guide is here to help. How To Install React on macOSTo install ReactJS on macOS, you first need to have N
    4 min read
geeksforgeeks-footer-logo
Corporate & Communications Address:
A-143, 7th Floor, Sovereign Corporate Tower, Sector- 136, Noida, Uttar Pradesh (201305)
Registered Address:
K 061, Tower K, Gulshan Vivante Apartment, Sector 137, Noida, Gautam Buddh Nagar, Uttar Pradesh, 201305
GFG App on Play Store GFG App on App Store
Advertise with us
  • Company
  • About Us
  • Legal
  • Privacy Policy
  • In Media
  • Contact Us
  • Advertise with us
  • GFG Corporate Solution
  • Placement Training Program
  • Languages
  • Python
  • Java
  • C++
  • PHP
  • GoLang
  • SQL
  • R Language
  • Android Tutorial
  • Tutorials Archive
  • DSA
  • Data Structures
  • Algorithms
  • DSA for Beginners
  • Basic DSA Problems
  • DSA Roadmap
  • Top 100 DSA Interview Problems
  • DSA Roadmap by Sandeep Jain
  • All Cheat Sheets
  • Data Science & ML
  • Data Science With Python
  • Data Science For Beginner
  • Machine Learning
  • ML Maths
  • Data Visualisation
  • Pandas
  • NumPy
  • NLP
  • Deep Learning
  • Web Technologies
  • HTML
  • CSS
  • JavaScript
  • TypeScript
  • ReactJS
  • NextJS
  • Bootstrap
  • Web Design
  • Python Tutorial
  • Python Programming Examples
  • Python Projects
  • Python Tkinter
  • Python Web Scraping
  • OpenCV Tutorial
  • Python Interview Question
  • Django
  • Computer Science
  • Operating Systems
  • Computer Network
  • Database Management System
  • Software Engineering
  • Digital Logic Design
  • Engineering Maths
  • Software Development
  • Software Testing
  • DevOps
  • Git
  • Linux
  • AWS
  • Docker
  • Kubernetes
  • Azure
  • GCP
  • DevOps Roadmap
  • System Design
  • High Level Design
  • Low Level Design
  • UML Diagrams
  • Interview Guide
  • Design Patterns
  • OOAD
  • System Design Bootcamp
  • Interview Questions
  • Inteview Preparation
  • Competitive Programming
  • Top DS or Algo for CP
  • Company-Wise Recruitment Process
  • Company-Wise Preparation
  • Aptitude Preparation
  • Puzzles
  • School Subjects
  • Mathematics
  • Physics
  • Chemistry
  • Biology
  • Social Science
  • English Grammar
  • Commerce
  • World GK
  • GeeksforGeeks Videos
  • DSA
  • Python
  • Java
  • C++
  • Web Development
  • Data Science
  • CS Subjects
@GeeksforGeeks, Sanchhaya Education Private Limited, All rights reserved
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our Cookie Policy & Privacy Policy
Lightbox
Improvement
Suggest Changes
Help us improve. Share your suggestions to enhance the article. Contribute your expertise and make a difference in the GeeksforGeeks portal.
geeksforgeeks-suggest-icon
Create Improvement
Enhance the article with your expertise. Contribute to the GeeksforGeeks community and help create better learning resources for all.
geeksforgeeks-improvement-icon
Suggest Changes
min 4 words, max Words Limit:1000

Thank You!

Your suggestions are valuable to us.

What kind of Experience do you want to share?

Interview Experiences
Admission Experiences
Career Journeys
Work Experiences
Campus Experiences
Competitive Exam Experiences