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
You don't need to change TeamCity account from system to local like Christoper wrote. It's simpler way:
1.[build agent machine] Make sure you have node directory and local npm packages directory in your PATH, example:
C:\Users\'yourUserName'\AppData\Roaming\npm;C:\Program Files\nodejs
npm install grunt-clinpm install -g grunt-cli. You can do this step only once (on your local machine) and commit file changes to reponpm install powershell -Command "grunt build"In some reason build agent running on system account cant get access to C:\Users\'yourUserName'\AppData\Roaming\npm via cmd, but via powershell can.