

The installation is pretty straightforward. Installing Node.js and npm from the Ubuntu repository #Īt the time of writing, the Node.js version included in the default Ubuntu 22.04 repositories is v12.22.9 which is an older TLS version. If you are not sure which Node.js version to install, consult the documentation of the application you’re going to deploy. If you are Node.js developer, then this is the preferred way of installing Node.js.Ĭhoose the installation method that is most appropriate for your environment. This tool allows you to have multiple Node.js versions installed on the same machine. Currently, NodeSource supports Node.js v18.x, v17.x, v16.x, and v14.x. Use this repository to install a different Node.js version than the one provided in the Ubuntu repositories. The version included in the Ubuntu repositories is v12.22.9. This is the easiest way to install Node.js and npm on Ubuntu and should be sufficient for most use cases.
