How to Install Node.js on Ubuntu (Step-by-Step Guide)
In this guide, we will show you four different ways of getting Node.js installed on an Ubuntu server: using apt to install the nodejs package from Ubuntu’s default software repository, using apt with an alternate PPA software repository to install specific versions of the nodejs package, installing the Node Version Manager and using it to install and manage multiple versions of Node.js, and installing Node.js from source