There are two primary methods for installing Node.js on Windows.

  1. Using a Package Manager
  2. Using a Prebuilt Installer

Using a Package Manager

  • Fast Node Manager
    Use Fast Node Manager by opening PowerShell and executing the following commands.
# installs fnm (Fast Node Manager)
winget install Schniz.fnm

# configure fnm environment
fnm env --use-on-cd | Out-String | Invoke-Expression

# download and install Node.js
# you can replace '22' with the version number you want
# to install e.g 18, 19, 20, 21, 23
fnm use --install-if-missing 22

# verifies the right Node.js version is in the environment
node -v # should print `v22.11.0`

# verifies the right npm version is in the environment
npm -v # should print `10.9.0`
  • Chocolatey
    Please ensure that Chocolatey is installed on your computer before running the commands below in Windows PowerShell.
  • Docker
    Please download and install Docker before running the commands below in Windows PowerShell.

Using a Prebuilt Installer

Click the link provided below. Once it opens, select the Node.js version you want to install, the operating system you’re using, and the architecture. After making your selections, click the large green button labeled “Download” to begin the download of Node.js.

https://nodejs.org/en/download/prebuilt-installer

Once you have downloaded the file, simply run the installer and follow the setup instructions or prompts to complete the installation.

Tagged in: