

Let’s begin by installation of Node Version Manager. NVM allows you to install any Node.js version as well as switch between Node.js versions in a very simple manner. Using NVM is most flexible and recommended way to install Node.js if the Node.js version installed from the above standard Ubuntu 18.04 repository does not fit your needs. Install Node.js using Node Version Manager (NVM)

NodeSource is a former PPA repository for Node.js. The following linux command:Īdditionally, you may want to also install Node.js package manager npm:

This will also ensure that you end up with a most stable and tested Node.js version at the cost of slightly lower version number. Perhaps the fastest and easiest way to install Node.js on Ubuntu 18.04 is to perform an installation from a standard Ubuntu 18.04 repository. Ubuntu 20.04 (Focal Fossa) Instructions Install Node.js using Standard Ubuntu 18.04 Repository
