IMPORTANT: Don't forget to connect with me on LinkedIn, use the contact link on the navigation bar below!

· coding · 1 min read · Save it 👉

How to update NodeJS to the correct version

A quick walkthrough, on how to update NodeJS.

A quick walkthrough, on how to update NodeJS.
sudo apt update

install NVM using the curl commmand

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash

Close and reopen the terminal for system to recognize the changes or run the command:

source ~/.bashrc

Then, verify if you have successfully installed NVM:

nvm --version

Before upgrading Node.js, check which version you have running on the system:

nvm ls

Now you can check for newly available releases with:

nvm ls-remote

To install the latest version, use the nvm command with the specific nodejs version

nvm install [version.number]
Share:
Back to Blog