window is undefined microsoft jscript runtime error?
If you're getting a "Microsoft JScript runtime error" that means that node. js isn't even getting invoked; instead Windows Script Host is trying to run your code. That's probably a problem with filetype associations; IIRC Windows defaults to trying to execute a ".