How to Update Node versions

Updated onbyAlan Morel
How to Update Node versions

In this post, we'll learn how to properly update Node versions on your machine.

Every few months, Node releases a new major version. These releases address security issues, bug fixes, and new features.

To ensure that your code continues to work as expected, you'll want to keep your Node version up to date.

Let's explore the different ways you can update your Node version.

Official Binary Packages

If you installed Node using the official binary packages on the Node website, then all you need to do is download the latest version of Node and install it.

The installer will automatically install the latest version of Node and remove any older versions.

Node binaries download page

Simply finish the installation process and you're good to go.


Another way to update your Node version is to use the Node Version Manager (NVM). Using NVM, you can manage multiple different versions of Node.

To check if you have NVM installed, run the following command:

nvm --version

If you have NVM installed, you can install a new version of Node by using the following command:

nvm install <version>

For example:

nvm install 17.0.0

Alternatively, you can can install the latest LTS version of Node by using the following command:

nvm install node


If you're on macOS, you can use the popular Homebrew package manager to install and update Node.

Here's how easy it is to update your Node version:

brew update

brew upgrade node

Run those two commands and Homebrew will take care of the rest.

You can even use Homebrew to switch between different versions of Node.

Here's how to switch to another version of Node:

brew switch node <version>


In this post, we've seen the best ways to update Node versions. With each update of Node, you're getting more features, better security, improved performance, and more.

Hopefully, you've found the best way to update your Node version.

Happy coding!


To learn more about web development, founding a start-up, and bootstrapping a SaaS, follow me on X!
Copyright © 2017 - 2024 All rights reserved. Made with ❤ in NY.