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
As explained in the FAQ, you need to type grunt.cmd
instead on Windows because the OS tries to launch grunt.js
Or you can install grunt-cli globally instead. This package will run any version of Grunt if it's been installed locally to your project.
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 ".js" file with WSH. You may wind up having to create a shortcut to your script, specifying a command line (probably something like "node %1") and a starting directory in order to make sure that it's executed properly.
It would help if you could tell us exactly how you're trying to invoke your code.
I had a similar issue, the problem is file association, I would recommend:
That should do the trick.