BEST WAY FOR NODE JS INSTALLATION

0
0

OVERVIEW

In this blog, you will learn the best way for node js installation on to your system, so that you can get started with node application. In our previous blog, we have already understood about nodejs, that it is an open-source javascript runtime built on Google chrome’s javascript engine.

You can write your code in node.js and then run it you need to install node js on your system as per the operating system you are using whether Linux, mac os, windows, etc. Accordingly, you have to take the steps to install it. Let’s understand how to install it on the Linux system.

INSTALL NODE.JS ON LINUX

STEP 1: Open the terminal or press Ctrl + Alt + T

STEP 1: Run the given command to install node.js on your system

sudo apt install nodejs
NODE.JS INSTALLATION

STEP 3: Now verify that node.js is installed on your system or not, by typing the given command

node -v
or
node --version

Also, it is recommended that you should install npm(Node Package Manager) with Node.js. For node.js packages NPM is an open source library.

To install NPM, use the comand given here,

sudo apt install npm

and then verify it with either of the commands,

npm -v
or
npm --version

Now Node.js and NPM are installed successfully on your system. You can also install node.js using the NodeSource repository. Here is how you can install Node.js with NodeSource repository.

This is all about the best way for node js installation, I hope you have gained some good quality of knowledge from here. If you have any query then feel free to leave your query below in the comment section.

Stay tuned and Happy Learning. 🙂

One thought on “BEST WAY FOR NODE JS INSTALLATION

Leave a Reply