

Sometimes, you may be collaborating on a project with someone using a different version of node and you need to switch node versions to what the project requires. I like nvm because it allows me use different node versions for different projects. I'll show you how to use both.Īll commands here will be run using the Ubuntu CLI/terminal. To get the latest versions, we can use either nodesource or nvm (node version manager). In this tutorial, what we want to do is get either v12.18.1 (LTS - with Long term support) or v14.4 of Node. As a result, to get the latest versions of any software, we may have to use private packages published by developers. This is because when new versions of a software are released, it can take months for the Ubuntu team to test and release in the official Ubuntu store. This is the latest version in the ubuntu app store, but it's not the latest released version of NodeJS.

If you try installing the latest version of node using the apt-package manager, you'll end up with v10.19.0.
