Nodejs Setup

Nodejs setup based on operating systems like Windows, Linux, and Mac. I am showing Linux based setup only.
there is some command to install Nodejs.

1) sudo apt-get install curl
2) curl -sL | sudo -E bash –

Now, Install Nodejs
3) sudo apt-get install nodejs

After installed Nodejs check the version
node -v
npm -v

Now, create a test.js file and put the below code


console.log("Hello Node");

// run this file

node filename

node test.js
Output:- Hello Node