Pages

Installation of Node.js on Linux

Node.js is a JavaScript run time built on Chrome’s V8 JavaScript engine. Node.js can be installed in different ways on Ubuntu Linux system machine. 

You can use Ubuntu’s official repository to install Node.js or another way to use Node Source repository.

Installation via Node Source repository will allow you to choose latest version of Node.js.

Node.js installation steps

STEP 1 : Open Terminal and run following command  sudo use for the root user access


sudo apt install nodejs
STEP 2 : After installed, verify it by checking the installed version using the following command


node -version  or node -v



Recommeded to install Node Package Manager(NPM) with Node.js. Node Package Manage(NPM) is an open source library of Node.js packages. To install NPM, use the following commands:

STEP 1 :  Installation NPM run following comands


sudo apt install npm
STEP 2 : After installed, verify it by checking the installed version using the following command


npm -V or npm -version




No comments:

Post a Comment

Popular Posts