I installed Nodejs and I'm using it for the first time. The API is a bit too generic. The first example does not explain how to specify a file path. I setup the testFile.js with the code:
var http = require('http');
http.createServer(function (request, response) {
response.writeHead(200, {'Content-Type':
'text/plain'});
response.end('Hello World\n');
}).listen(8124);
console.log('Server running at
http://127.0.0.1:8124/');
I verified node.js is correctly installed by typing "node <enter> 1 + 1" and got a response of "2". Then I tried:
>node "C:\path\testNode.js"
This returns ... which is no different than passing an incorrect file
>node "C:\INCORRECTPATH\testNode.js"
Then I tried dropping the parenthesis, still no work. Also tried doing a change directory before running "node" command. Guess what! Still no worky. The error ... is super useful, but I just dunno how to fix it..?
What's the syntax?

node testNode.jsAlso tried doing a change directory before running "node" command. Guess what! Still no workycd /mydirectoryand then just run nodetestNode.js