Install Node.js
Node.js is required to run your React Native app and manage packages. Here’s how to install it:Step 1: Download Node.js
For Windows users, we strongly recommend using the .msi installer:
- Go to nodejs.org
- Click Download Node.js (LTS) - this downloads the .msi installer
- The .msi installer is the easiest and most reliable method for Windows
The .msi installer automatically handles PATH configuration and is the most beginner-friendly option for Windows users.
Step 2: Install Node.js
Installing with the .msi installer:
- Double-click the downloaded
.msi
file - Click Next through the installation wizard
- Accept the license agreement
- Important: Keep all default settings (especially “Add to PATH”)
- Click Install and wait for completion
- Click Finish when done
The .msi installer automatically adds Node.js to your system PATH, so you can use
node
and npm
commands from any terminal window.Step 3: Verify Installation
Open your terminal/command prompt and run:v18.17.0
or higher.
Also check npm (comes with Node.js):
9.6.7
or higher.
Troubleshooting
Command not found?- Restart your terminal/command prompt
- On Windows, restart your computer
- Make sure you selected Add to PATH during installation
- Download the latest version from nodejs.org
- Or use npm:
npm install -g npm@latest