title: Cannot get TeamCity Build Step to execute grunt-cli
body: <p>I'm trying to automate building of my project on a TeamCity server. I'm using <code>grunt</code> to define and configure my tasks. This works fine locally. Yet, I am having problems getting TeamCity (running on Windows Server 2008) to recognize <code>grunt</code>  as a executable, the build will fail when <code>grunt</code> is called as it is not available.</p>
  
  <p>I do have <code>grunt-cli</code> installed on the server and can execute it when I login via ssh (The build script also succeeds when I trigger it that way).</p>
  
  <p>I'm running <code>npm install</code> before I call grunt and also tried to force install <code>grunt-cli</code> using a <code>preinstall</code> instruction in my <code>package.json</code> like:</p>
  
  <pre><code>{
    "name": "someName",
    "version": "0.0.1",
    "private": true,
    "scripts" : {
      "preinstall" : "npm install grunt-cli -g"
    },
    "devDependencies": {
      "grunt": "~0.4.1",
      "grunt-contrib-jshint": "~0.6.3",
      "grunt-contrib-less": "~0.8.1",
      "grunt-contrib-watch": "~0.5.3",
      "grunt-contrib-requirejs": "~0.4.1",
      "grunt-strip": "~0.2.1",
      "grunt-bump": "0.0.11"
    } 
  }
  </code></pre>
  
  <p>I can see npm installing grunt-cli, yet grunt is not available in the next step.</p>
  
  <p>I also tried wrapping that into a <code>bat</code> file or using multiple build steps for dependency installing and running the grunt task.</p>
  
  <p>Does anyone have any input on this?</p>