I\'m trying to run a simple gruntfile.js
as part of my build in TeamCity. However, even after installing grunt and grunt-cli as global node packages, TeamCity s
This was a weird and very annoying bug, but I finally found a workaround. In the %AppData%\Roaming\npm
directory, there are two files: "grunt" and "grunt.cmd". "grunt" is a unix file, and "grunt.cmd" is supposed to run the grunt-cli application using node, but it doesn't. I had to create a new file called "grunt.bat" (which takes precedence over "grunt.cmd") that contains
node "%~dp0\node_modules\grunt-cli\bin\grunt" %*
Now it works. Not sure why.