
The above command will install a variety of packages, including the tools needed to compile and install native npm addons.Īfter that, execute the following command to check the installation: nodejs -version To update the package index and install Node.js and npm, run the following commands: sudo apt update

The process of installation is rather simple. The Node.js version supplied in the Ubuntu 20.04 repositories at the time of writing is 16.14.0, which is the previous TLS version. Install Node.js and npm from the Ubuntu Repository Consult the documentation for the application you're intending to deploy if you're not sure which Node.js version to install. Select the installation technique that is best for your situation. This is the preferred method of installing Node.js if you are a Node.js developer. You can use this utility to install various Node.js versions on the same system.

If you wish to install a Node.js version other than the one included in the Ubuntu repositories, use this repository.

Node.js is a cross-platform JavaScript runtime environment based on Chrome's JavaScript and intended for server-side execution of JavaScript programs.

Choose a different version or distribution Introduction
