I just installed Node.js on a new system and wanted to make sure it worked. I tested it with a simple hello world script.
Contents of the node.js file
Then I attempted to run it:
Which produced the following error:
Error: 'console' is undefined
Source: Microsoft JScript runtime error
Weird. And Microsoft JScript runtime? Very weird.
node.js, not via Node.js but natively in Windows.
If I rename the file
hellonode.js I can reproduce the same error:
Or I can run the intended file via Node.js: