This PPA can be added to the Ubuntu system to install Node.js with a few simple commands.
The Node.js package is available in the LTS release and the current release. It’s up to the user to select the version of Node that is required. Run the following command to add the PPA to the Ubuntu system:
sudo apt-get install curl
curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
12.x is the latest LTS version of node available.
After successfully adding the PPA to the system, execute the command below to install Node on Ubuntu:
sudo apt-get install nodejs
To verify any installation, check the version number of the installed software. For node, run the following command:
If the correct version number is displayed on the terminal, the installation of Node on your system was successful.
View all Courses