Can't Run node.js files, Microsoft JScript Runtime Error Code: 800a138f

The Code is -

    var http = require('http');
    http.createServer(function (req, res) {
    res.writeHead(200, {'Content-Type': 'text/plain'});
    res.end('Hello World!');     

saved in desktop named as hello.js

if I open the file directly from desktop it gives a Microsoft JScript Runtime Error Code: 800A138F, on line 1 char 2

And When I execute it with cmd like this -

    C:\Users\Cpt.CG>cd desktop
    C:\Users\Cpt.CG\Desktop>node hello.js

What Output come is like this -

    C:\Users\Cpt.CG\Desktop>node hello.js


Just a underscore blinking.



comments powered by Disqus