title: Running karma on team city - "cannot find module"
body: <p>I'm new to node. I'm trying to run javascript tests on TeamCity using nodejs+karma+jasmine.</p>
  
  <p>I have installed node on both my local development machine and on TeamCity. It seems to be working at both places.</p>
  
  <p>I have made a local install of karma using <code>npm install karma</code> and configured it using <code>.\node_modules\.bin\karma.cmd init</code>. The tests run fine locally using <code>.\node_modules\.bin\karma.cmd start --single-run</code>
  . I have checked in the whole node_module folder.</p>
  
  <p>When I try to run karma in TeamCity using a command line step that runs <code>.\node_modules\.bin\karma.cmd start --single-run</code> I get the following:</p>
  
  <pre><code>[08:52:42][Step 6/6] module.js:340
  [08:52:42][Step 6/6]     throw err;
  [08:52:42][Step 6/6]           ^
  [08:52:42][Step 6/6] Error: Cannot find module 'D:\tc_a1\work\c4418f0fd0a402a7\node_modules\karma\bin\karma'
  [08:52:42][Step 6/6]     at Function.Module._resolveFilename (module.js:338:15)
  [08:52:42][Step 6/6]     at Function.Module._load (module.js:280:25)
  [08:52:42][Step 6/6]     at Function.Module.runMain (module.js:497:10)
  [08:52:42][Step 6/6]     at startup (node.js:119:16)
  [08:52:42][Step 6/6]     at node.js:901:3
  </code></pre>
  
  <p>I have tried several permutations of the run command, but they all result in the same output.</p>
  
  <p>How do I get it to work?</p>