- Install Node.js on Ubuntu – Using Terminal
- Install npm package manager on Ubuntu
- Check Node.js & npm package manager version
- Install Node.js on Ubuntu using NVM
- Check Node.js Version on NVM
- Get in Touch with Us
Install Node.js on Ubuntu using Terminal- Simple Steps:
Open Terminal on Ubuntu using the shortcut key combination CTRL + ALT + T.
The above command will install node.js on Ubuntu. You may be asked to enter the system password to authenticate the installation process and also you will be prompted with Yes or No for continuing the installation process. Kindly press “Y” and press Enter key.
Install npm Package Manager on Node.js Ubuntu:
Now that we have installed the Node.js, it will not be complete without its Package Manager. If you are well aware of Node.js then you will be knowing everything about the indispensability of npm package manager. Kindly use the following command to install the npm package manager for Node.js
Confirm the prompting “Do you want to continue?” by pressing “Y” will proceed the installation of the npm package manager.
How to Check Node.js and npm Versions on Linux Ubuntu:
After installing the Node.js and npm package manager on Ubuntu, you can check their versions using the following commands.
For Checking Node.js Version:
If you have a number of Node.js Versions installed on your Ubuntu then Kindly use the following command to get the list of them.
For Checking npm package manager version:
How to Remove Node.js from Ubuntu:
If you wish to remove Node.js from your Ubuntu, then Kindly use the following commands to uninstall Node.js from Linux Ubuntu.
How to Install Node.js on Ubuntu using NVM:
This is the alternate method to install Node.js on Linux Ubuntu. We will use Node.js Version Manager. NVM works as a independent directory which allow users to use multiple versions of Node.js without affecting home directory. To make it clear, you able to install Latest Node.js retaining your favourite node.js version. The steps are very simple.
Now that we have the required packages installed, we will download the nvm installation script from corresponding GitHub page.
Nextly, we will check the downloaded installation script with Nano Text Editor on the Terminal.
Now, we will run the installation script with bash so that it will install the nvm on the subdirectory of the Home directory.
Using the Bash on the nvm will also add all the required scripts to the ~/.profile. To update the above changes made and to get the access to nvm, Kindly execute the following command.
It is time to install Node.js. Now that Node.js Version Manager(NVM) is installed, we will select the nodejs versions to install and to use. The following are the commands.
From the list of Node.js Versions, you can choose the particular version to install.
How to Check Node.js Version on Node.js Version Manager(NVM):
The command to check the Node.js version varies when you use NVM. The following is the command to check the Node.js Version on NVM.
We have installed Node.js using NVM. You can start using now.
Get in Touch with Us:
This article provides detailed information on How to Install Node.js on Ubuntu using the direct method and also using the Node.js Version Manager(NVM). This article also discusses checking the Node.js and npm Package manager versions on direct method and as well as on the NVM. If you have any Query then Kindly Comment Us and we will revert to you with a solution ASAP. For instant solutions, Contact Us through our Forum!!
For more interesting articles, Kindly visit Tec Robust