I am very newbie to node.js. In the node REPL everything was working fine. But something changed. When I try to execute a file it shows this...
D:\\Projects-
Are you running node by double clicking on it?
You have to run node from command line and give command node xyz.js on command line.
node should be in your class path or while executing node use full path. such as c:\work\nodetest\node .\xyz.js
in above i coped the js file in same folder as node file.