title: ECONNREFUSED error when trying to download cordova plugins
body: <p>So, I'm trying to download a cordova plugin to my newly created project (which was created using CLI). Next, I'd like to add file support to it. So I do this :    </p>
  
  <blockquote>
    <p>cordova plugin add org.apache.cordova.file</p>
  </blockquote>
  
  <p>I get this output : </p>
  
  <blockquote>
    <p>Fetching plugin from "org.apache.cordova.file"...</p>
    
    <p>Can't fetch : ECONNREFUSED</p>
  </blockquote>
  
  <p>This looks like a nodeJS error (I've looked at many links) but I'm not able to make head/ toe of it, so any guidance might be helpful.
  <a href="https://stackoverflow.com/questions/19096653/connect-econnrefused-with-phonegap">There's someone who's already asked for why this happens</a>, but it looks like there's no response to it, so reposting :)</p>
  
  <p>My cordova version  is  : 3.1.0 and I'm under an authenticated proxy. <strong>And yes, I've added the related nodeJS settings for proxy and stuff.</strong></p>
  
  <p><strong>Verbose mode (added a -d to the command)</strong></p>
  
  <blockquote>
    <p>Calling plugman.fetch on plugin "org.apache.cordova.file" Fetching</p>
    
    <blockquote>
      <p>plugin from "org.apache.cordova.file"... Error: Error fetching plugin:
      Error: connect ECONNREFUSED
          at C:\Users\username\AppData\Roaming\npm\node_modules\cordova\src\plugin.js:94:41 at _rejected (C:\Users\username\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.js:808:24)
          at C:\Users\username\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.js:834:30
          at Promise.when (C:\Users\username\AppData\Roaming\npm\node_modules\cordova\no
      de_modules\q\q.js:1079:31)
          at Promise.promise.promiseDispatch (C:\Users\username\AppData\Roaming\npm\node
      _modules\cordova\node_modules\q\q.js:752:41)
          at C:\Users\username\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.js:574:44
          at flush (C:\Users\username\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.js:108:17)
          at process._tickCallback (node.js:415:13)</p>
    </blockquote>
  </blockquote>