title: Issue running karma task from gulp
body: <p>I am trying to run karma tests from gulp task and I am getting this error:</p>
  
  <pre><code>Error: 1
     at formatError (C:\Users\Tim\AppData\Roaming\npm\node_modules\gulp\bin\gulp.js:161:10)
     at Gulp.&lt;anonymous&gt; (C:\Users\Tim\AppData\Roaming\npm\node_modules\gulp\bin\gulp.js:187:15)
     at Gulp.emit (events.js:95:17)
     at Gulp.Orchestrator._emitTaskDone (C:\path\to\project\node_modules\gulp\node_modules\orchestrator\index.js:264:8)
     at C:\path\to\project\node_modules\gulp\node_modules\orchestrator\index.js:275:23
     at finish (C:\path\to\project\node_modules\gulp\node_modules\orchestrator\lib\runTask.js:21:8)
     at cb (C:\path\to\project\node_modules\gulp\node_modules\orchestrator\lib\runTask.js:29:3)
     at removeAllListeners (C:\path\to\project\node_modules\karma\lib\server.js:216:7)
     at Server.&lt;anonymous&gt; (C:\path\to\project\node_modules\karma\lib\server.js:227:9)
     at Server.g (events.js:180:16)
  </code></pre>
  
  <p>My system is <code>Windows 7</code>, nodejs version is <code>v0.10.32</code>, gulp version:</p>
  
  <pre><code>[10:26:52] CLI version 3.8.8
  [10:26:52] Local version 3.8.9
  </code></pre>
  
  <p>Also, the same error I am getting on <code>Ubuntu 12.04 LTS</code> while on newer Ubuntu (not sure what version) and mac os it is seems to be working ok. What can cause this error?</p>
  
  <p><strong>Update 5/11/2016</strong>: Before writing comment about the fact that accepted answer hide errors, please, see first two comments to that particular accepted answer. Use it only if know what you are doing. Related info: <a href="https://github.com/karma-runner/gulp-karma/pull/15">https://github.com/karma-runner/gulp-karma/pull/15</a></p>