I just started to learn and train about node js. I was already installing node js version 2.14.7 64bit. Then. I was writing a code to make basic server.
var
If you save your node.js file inside the "users" folder , then you can get this kind of errors.
The best way to solve this is that you make a folder inside the D:\ like "D:\node" and then with the help of "cd" or "cd.." command in you cmd to navigate to the folder and run "node test4.js".
Hope it solves your problem.
It looks like you are double-clicking on the file, which by default will execute the file with Microsoft's JScript implementation. To execute the file under node.js, you will have to start your script at the command line with something like node test4.js
(assuming you are in D:\node.js
).