follow the below step:

var http = require('http');
http.createServer(function(request, response) {
 response.writeHead(200);
 response.write("hello, this is blog");
 response.end();

}).listen(8080);

console.log('Listening on port 8080...');