Progress:
0/12

Navigation

Install Node.js

Run JavaScript outside the browser for awesome tools

Guide Progress: 0 of 0 steps completed

Platform Note

The Node.js installation process differs between Windows and macOS.
⚡ On Windows, you must also configure PowerShell’s execution policy before running npm commands.
On macOS, this step is not required.

1

Go to the Node.js website

Download Link

Node.js homepage

Step 1
2

Click 'Get Node.js'

Click the Get Node.js button.

Click Get Node.js

Step 2
3

Click 'Windows Installer (.msi)'

Select the Windows Installer (.msi) option to download.

Download Windows Installer

Step 3
4

Open the downloaded file

Once the installer finishes downloading, open the file.

Open the downloaded installer

Step 4
5

Click 'Next'

In the installer, click Next.

Click Next

Step 5
6

Accept the license agreement

Select I accept the terms in the License Agreement and click Next.

Accept license agreement

Step 6
7

Click 'Next' until ready to install

Keep clicking Next through the setup screens until you reach the install step.

Click Next multiple times

Step 7
8

Click 'Install'

Click Install to begin installation.

Click Install

Step 8
9

Click 'Yes' if prompted

If you see a User Account Control prompt, click Yes.

Click Yes in UAC prompt

Step 9
10

Click 'Finish'

When the installation completes, click Finish.

Click Finish

Step 10

Verification Steps

The following verification steps are identical for all platforms once Node.js is installed,
except for an additional PowerShell configuration step required on Windows.

11

Open VS Code and click 'Terminal'

Close and re-open Visual Studio Code, click the Terminal menu at the top.

Click Terminal menu in VS Code

Step 11
12

Select 'New Terminal'

From the dropdown, select New Terminal.

Select New Terminal

Step 12
13

Set PowerShell Execution Policy (Windows-only)

In the new terminal, type the following command and press Enter:

PowerShell
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser

This allows npm scripts to run without policy errors.

Set PowerShell execution policy

Step 13
14

Check Node.js version

Type the following command and press Enter:

Terminal
node -v

You should see a version number, for example: v20.xx.x.

Check Node.js version in terminal

Step 14
15

Check npm version

Type the following command and press Enter:

Terminal
npm -v

You should see a version number, for example: 10.x.x.

Check npm version in terminal

Step 15
1

Go to the Node.js website and click 'Get Node.js'

Download Link

Node.js homepage with Get Node.js button

Step 1
2

Click 'macOS Installer (.pkg)'

Select the macOS Installer (.pkg) to download. Click macOS Installer (.pkg)

Step 2
3

Click 'Allow'

If prompted by macOS, click Allow to proceed with the download. Allow the download prompt

Step 3
4

Enter your password if prompted

If macOS asks for permission to install, enter your administrator password. Enter password to install software

Step 4
5

Click 'Continue'

Proceed through the installer by clicking Continue. Click Continue in the installer

Step 5
6

Click 'Agree'

Accept the license agreement by clicking Agree. Click Agree in the installer

Step 6
7

Click 'Install'

Click Install to begin installing Node.js and npm. Click Install to start installation

Step 7

Verification Steps

The following verification steps are identical for all platforms once Node.js is installed.
⚠️ The PowerShell execution policy step only applies to Windows.

8

Open VS Code and click 'Terminal'

Close and re-open Visual Studio Code, click the Terminal menu at the top. Click Terminal menu in VS Code

Step 8
9

Select 'New Terminal'

From the dropdown, select New Terminal. Select New Terminal

Step 9
10

Check Node.js version

Type the following command and press Enter:

Terminal
node -v

You should see a version number, for example: v20.xx.x. Check Node.js version in terminal

Step 10
11

Check npm version

Type the following command and press Enter:

Terminal
npm -v

You should see a version number, for example: 10.x.x. Check npm version in terminal

Step 11