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 https://deb.nodesource.com/setup_12.x | 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

test.js

console.log("Hello Node");

// run this file

node filename

node test.js
Output:- Hello Node