Learn more: https://en.wikipedia.org/wiki/Node.js
Ryan Dahl in 2009 decided “it would be great to run it outside the browsers” before Node.js we only had that runtime that Web APIs and Call back Queue in event loop all browsers based.
Click the Link and Download pkg
It is always better to check the version and location of Node.js which you installed.
$ node -v v12.18.3
$ which node /usr/local/bin/node
$ npm -v 6.14.6
$ which npm /usr/local/bin/npm
npm config list command, you can check the basic configuration of Node.js on your computer.
$ npm config list ; cli configs metrics-registry = "https://registry.npmjs.org/" scope = "" user-agent = "npm/6.14.6 node/v12.18.3 darwin x64" ; node bin location = /usr/local/bin/node ; HOME = /Users/jayjo ; "npm config ls -l" to show all defaults.
Create hello.js file
// If you are using mac or linux $ touch hello.js
In hello.js file
$ node hello.js # Hello World