How to Update Node.js on Windows

Mateen Kiani

Mateen Kiani

Published on Sun Jul 06 2025·4 min read

how-to-update-node.js-on-windows

How to Update Node.js on Windows

Keeping Node.js up to date ensures you get the latest features, performance improvements, and security patches. On Windows, you have a couple of straightforward options: the official installer or a version manager called nvm-windows. Which approach fits your workflow best?

Below, we’ll cover both methods step by step, show you how to verify a successful update, and share tips to resolve common hiccups. Let’s get you running the latest Node.js on your Windows machine in no time.

Why Update Node.js?

Every few months, the Node.js team rolls out new versions with faster performance, brand-new APIs, and critical security fixes. Staying current:

  • Improves runtime speed and memory usage
  • Unlocks new language features in ECMAScript
  • Removes vulnerabilities that attackers could exploit

If you skip updates for too long, you might hit compatibility issues with modern frameworks or libraries. A quick update keeps your development smooth and secure.

Check Your Current Version

Before jumping in, see which version you have installed. Open PowerShell or Command Prompt and run:

node -v
npm -v

You should see something like v14.17.0 and an npm version alongside it. Jot these down so you can confirm the update succeeded later.

Tip: If you get an error saying node is not recognized, Node.js might not be installed or on your PATH. You’ll need to install it fresh.

Update Using the Official Installer

This method works well if you only need one Node.js version on your machine.

  1. Visit the Node.js website at https://nodejs.org and download the Windows .msi installer for the LTS or Current version.
  2. Close any running command prompts or terminals to avoid file locks.
  3. Double-click the downloaded .msi and follow the prompts.
    • Accept license terms
    • Keep default settings unless you need custom install paths
  4. Once the installer finishes, reopen your terminal and run:
node -v
npm -v

You should see the new version numbers. If everything looks good, you’re done.

Update Using nvm-windows

For developers juggling multiple projects with different Node.js requirements, nvm-windows is a lifesaver.

  1. Uninstall any existing Node.js versions via Control Panel > Programs.
  2. Download the nvm-windows installer from the [nvm-windows GitHub releases page].
  3. Run the installer and follow the steps. By default, nvm will install to C:\Program Files\nvm and symlink node and npm to that folder.
  4. Open a new PowerShell window and install your desired Node.js version:
nvm install 16.13.0
nvm use 16.13.0
  1. Check your active version:
node -v
  1. To switch versions later, run nvm ls to list installed versions and nvm use <version>.

Verify the Update

After updating, do a quick sanity check:

node -v # Should match the version you installed
npm -v # NPM should also update alongside Node

Next, test running a simple script:

// hello.js
console.log('Node is up to date!');
node hello.js

If you see Node is up to date!, you’re all set.

Troubleshooting Tips

  • If node -v still shows the old version:
    • Make sure no other Node.js installations exist in C:\Program Files.
    • Verify your PATH environment variable points to the new install location before any old paths.
  • If npm commands fail, reinstall npm alone: powershell npm install -g npm
  • On Windows PowerShell, run as Administrator if you hit permission errors.

Tip: After updating, you might need to reinstall global packages like Yarn. Check out our guide on installing Yarn using npm for a quick refresher.

What’s Next?

With Node.js updated, you can explore the latest features:

  • ES Modules: Use import and export without flags.
  • Top-Level Await: Write asynchronous code at the module root.
  • Built-in Test Runner: Run node --test to launch the new test harness.

If you start writing HTTP-based services, see our guide on making HTTP requests in Node.js for common patterns.

Conclusion

Updating Node.js on Windows is quick once you know your options. The installer method is great for a single version, while nvm-windows gives you the flexibility to switch versions as projects demand. Always verify the new version, clean up old paths, and keep an eye on your global packages.

Staying on the latest Node.js release means you benefit from performance gains, new language features, and security patches. Now you’re ready to tackle modern Node.js development with confidence!


Mateen Kiani
Mateen Kiani
kiani.mateen012@gmail.com
I am a passionate Full stack developer with around 3 years of experience in MERN stack development and 1 year experience in blockchain application development. I have completed several projects in MERN stack, Nextjs and blockchain, including some NFT marketplaces. I have vast experience in Node js, Express, React and Redux.