Firstly, download the msi file from https://nodejs.org/en/html
Second, click the msi file to install node.js node
After success, can check like below ,it means install node.js and npm successfully.npm
Then, create a file named hello.js> go to the hello.js store place and run it like hello.jswindows
hello.js content.ui
console.log('Hello World!');
Here is the result you will see spa
Another sample you can try like below:3d
firstNodeHttpSample.js contentcode
var http = require('http'); http.createServer(function (req, res) { res.writeHead(200, {'Content-Type': 'text/html'}); res.end('Hello World!'); }).listen(8088);
run it by : node firstNodeHttpSample.jshtm
And check from browser you will seeblog
Refer Link:
https://blog.teamtreehouse.com/install-node-js-npm-windows
https://www.guru99.com/download-install-node-js.html