New Grunt user here who is using a lot of new tools (npm nodejs) today.
I\'ve got Grunt \"installed\" and have been able to create a grunt.js file using the init tas
To answer this, first we need to understand that the error is caused because it is being executed by Windows Script Host.
Now, run the code from your cmd promt with the following syntax:
>node .js
this will allow the Node.js application to open through V8 JavaScript engine(Google's).
P.S: Please reply back if this has helped in resolving your issue else post the problem you are facing after trying this.