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
I know this question is kind of old. But I struggled with the same problem nowadays and couldn't find a solution... but finally I did. Here you are.
TeamCity build steps should include:
1) Installation grunt-cli Command Line Command: npm install grunt-cli
2) Running grunt build task Command Line Command: node "node_modules/grunt-cli/bin/grunt" build
Working directory for both cases should be where your grountfile.js is located.