How to Upgrade Node Version Windows: Complete Guide to Latest Stable Release

Run the official Windows Installer from nodejs.org or use nvm install latest followed by nvm use latest to upgrade Node.js on Windows to the latest stable release.

Upgrading Node.js on Windows ensures you receive the latest security patches, performance improvements, and language features. Whether you manage a single development machine or maintain multiple Node.js environments, the nodejs/node repository provides two primary supported pathways for Windows users: the official MSI installer and nvm-windows (Node Version Manager).

Method 1: Using the Official Windows Installer

The official Windows Installer is the recommended approach for most users who want a simple, system-wide upgrade. This method replaces the existing Node.js binaries while preserving your global npm packages.

Downloading the Latest Stable Release

  1. Open PowerShell or Command Prompt.
  2. Check your current version to establish a baseline:
node -v
  1. Visit the official download page at https://nodejs.org/en/download/ and select the Windows Installer (.msi) for the "Current" (latest stable) version.

Installation and Verification Steps

  1. Execute the downloaded .msi file. The installation wizard automatically removes the previous Node.js version and installs the new one.
  2. After completion, verify the upgrade:
node -v
npm -v

The output should reflect the newly installed version (e.g., v22.5.0).

Verifying Installer Integrity

For security-conscious environments, the nodejs/node repository maintains a [SECURITY.md](https://github.com/nodejs/node/blob/main/SECURITY.md) file that documents how to verify the installer. Download the SHASUMS256.txt and SHASUMS256.txt.asc files from the release page, then validate the checksum and PGP signature using GnuPG before running the installer.

Method 2: Using nvm-windows for Version Management

nvm-windows is the preferred solution when you need to switch between multiple Node.js versions (e.g., testing against older LTS releases). This method aligns with the version management workflow described in [doc/contributing/releases.md](https://github.com/nodejs/node/blob/main/doc/contributing/releases.md).

Installing nvm-windows

  1. Download the latest nvm-setup.zip from the nvm-windows releases page.
  2. Extract and run nvm-setup.exe. The installer adds nvm to your system PATH.
  3. Open a new PowerShell or Command Prompt window to refresh environment variables.

Installing and Activating the Latest Node.js Version

  1. Install the latest stable release:
nvm install latest
  1. Activate the newly installed version:
nvm use latest
  1. Confirm the active version:
node -v

Switching Between Versions

Unlike the installer method, nvm-windows preserves previous installations. To switch back to an older version:

nvm list
nvm use <version_number>

This capability is essential for developers maintaining projects with different Node.js engine requirements.

Handling Global npm Packages and Native Addons

When upgrading Node.js, your global npm packages remain in %APPDATA%\npm and are not deleted. However, packages with native addons (C++ compiled modules) may break due to ABI changes between Node.js versions.

To rebuild all global packages against the new Node.js binary:

npm rebuild -g

Run this command immediately after upgrading to resolve "module not found" or "cannot find module" errors for globally installed CLI tools.

Building from Source (Advanced)

For users requiring custom builds or specific compile-time flags, the nodejs/node repository supports building from source on Windows. Refer to [BUILDING.md](https://github.com/nodejs/node/blob/main/BUILDING.md) for prerequisites including Python, Visual Studio, and Git.

The build process uses vcbuild.bat, a batch script that automates the Visual C++ compilation process:

vcbuild.bat

This method is primarily used by Node.js core contributors and advanced users who need to test unreleased features or debug the runtime itself.

Summary

  • Use the official Windows Installer for straightforward, one-time upgrades that replace the system-wide Node.js binary while preserving global npm packages.
  • Use nvm-windows when you need to manage multiple Node.js versions simultaneously or switch between LTS and Current releases frequently.
  • Verify installer integrity using the checksums and PGP signatures documented in the repository's SECURITY.md file.
  • Rebuild native addons globally with npm rebuild -g after upgrading to resolve ABI compatibility issues.
  • Build from source using vcbuild.bat only if you require custom compilation flags or are contributing to Node.js core development.

Frequently Asked Questions

What is the easiest way to upgrade Node.js on Windows?

The easiest method is downloading and running the official Windows Installer (.msi) from nodejs.org. This graphical wizard automatically removes the old version, installs the new one, and preserves your global npm packages without requiring command-line configuration.

How do I verify the Node.js installer is authentic?

Before running the .msi file, download the SHASUMS256.txt and SHASUMS256.txt.asc files from the same release page. Use GnuPG to verify the PGP signature against the public keys listed in the repository's SECURITY.md file, then confirm the installer's SHA256 hash matches the checksum file.

Will upgrading Node.js delete my globally installed npm packages?

No, upgrading Node.js does not delete global packages stored in %APPDATA%\npm. However, packages containing native C++ addons may require recompilation. Run npm rebuild -g after upgrading to ensure these binaries are compatible with the new Node.js ABI.

Can I have multiple Node.js versions installed on Windows simultaneously?

Yes, using nvm-windows (Node Version Manager for Windows). After installing nvm-windows, you can run nvm install to add specific versions and nvm use to switch between them instantly. This is ideal for testing applications against different Node.js releases without uninstalling the current version.

Have a question about this repo?

These articles cover the highlights, but your codebase questions are specific. Give your agent direct access to the source. Share this with your agent to get started:

Share the following with your agent to get started:
curl -s "https://instagit.com/install.md"

Works with
Claude Codex Cursor VS Code OpenClaw Any MCP Client

Maintain an open-source project? Get it listed too →