title: Get error with "line.slice()" on "karma init"
body: <p>I was started to read "Developing an AngularJS Edge", and I wanted to set up the various frameworks in use.</p>
  
  <p>The book uses nodejs and karma, along with several other frameworks.</p>
  
  <p>I'm on Win7x32.</p>
  
  <p>I just upgraded my nodejs to the latest, v0.10.18 .</p>
  
  <p>I installed the Karma package with "npm install -g karma".  This appeared to complete successfully.</p>
  
  <p>I then ran "karma init", which did this:</p>
  
  <pre><code>    % karma init
  &gt; 
  readline.js:507
    this.line = this.line.slice(this.cursor);
                          ^
  TypeError: Cannot call method 'slice' of undefined
      at Interface._deleteLineLeft (readline.js:507:25)
      at suggestNextOption (C:\Users\David\AppData\Roaming\npm\node_modules\karma\lib\init.js:167:9)
      at nextQuestion (C:\Users\David\AppData\Roaming\npm\node_modules\karma\lib\init.js:235:12)
      at process (C:\Users\David\AppData\Roaming\npm\node_modules\karma\lib\init.js:250:10)
      at Object.exports.init (C:\Users\David\AppData\Roaming\npm\node_modules\karma\lib\init.js:352:6)
      at Object.&lt;anonymous&gt; (C:\Users\David\AppData\Roaming\npm\node_modules\karma\bin\karma:25:37)
      at Module._compile (module.js:456:26)
      at Object.Module._extensions..js (module.js:474:10)
      at Module.load (module.js:356:32)
      at Function.Module._load (module.js:312:12)
  </code></pre>
  
  <p>Note that this error is virtually identical to the stack trace reported by <a href="https://stackoverflow.com/questions/18511860/getting-error-regarding-slice-during-karma-angularjs-unit-test-config">this person</a> a month ago, but that report has received no response.</p>