title: npm ERR! registry error parsing json
body: <p>I am working on a small Cordova v4.0.0 project, npm version: v0.10.35
  I was adding some plugins, normally,
  until now, when I try to add another plugin, it gives an error:</p>
  
  <pre><code>cordova plugin add org.apache.cordova.NetworkManager
  Fetching plugin "org.apache.cordova.NetworkManager" via plugin registry
  npm ERR! registry error parsing json
  npm ERR! registry error parsing json
  SyntaxError: Unexpected token I
  Internal routing error
  
  Sorry, we cannot connect to the intended server.
  
  We have just been notified of this problem. We will correct it as soon as possible.
  
  Feel free to contact us if you have any questions: support at iriscouch.com
  
      at Object.parse (native)
      at RegClient.&lt;anonymous&gt; (C:\Users\Tony\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\node_modules\npm\node_modules\npm-registry-client\lib\request.js:274:23)
      at C:\Users\Tony\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\node_modules\npm\node_modules\npm-registry-client\lib\request.js:251:7
      at Gunzip.onEnd (zlib.js:167:5)
      at Gunzip.emit (events.js:117:20)
      at _stream_readable.js:944:16
      at process._tickCallback (node.js:442:13)
  </code></pre>
  
  <p>In my attempt to solve this, I did:</p>
  
  <pre><code>npm cache clean
  </code></pre>
  
  <p>I had some proxy, installed by a spyware, that I uninstalled.
  I already cleared windows proxy settings, and npm proxy settings:</p>
  
  <pre><code>npm config rm proxy
  npm config rm https-proxy
  </code></pre>
  
  <p>But it stills not working.</p>
  
  <p>Update on Jan 12, 2015:</p>
  
  <pre><code>cordova plugin add org.apache.cordova.NetworkManager
  Fetching plugin "org.apache.cordova.NetworkManager" via plugin registry
  Error: 404 Not Found: org.apache.cordova.NetworkManager
      at RegClient.&lt;anonymous&gt; (C:\Users\Tony\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\node_modules\npm\node_modules\npm-registry-client\lib\request.js:304:14)
      at Request._callback (C:\Users\Tony\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\node_modules\npm\node_modules\npm-registry-client\lib\request.js:246:65)
      at Request.self.callback (C:\Users\Tony\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\node_modules\npm\node_modules\request\request.js:236:22)
      at Request.emit (events.js:98:17)
      at Request.&lt;anonymous&gt; (C:\Users\Tony\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\node_modules\npm\node_modules\request\request.js:1142:14)
      at Request.emit (events.js:117:20)
      at IncomingMessage.&lt;anonymous&gt; (C:\Users\Tony\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\node_modules\npm\node_modules\request\request.js:1096:12)
      at IncomingMessage.emit (events.js:117:20)
      at _stream_readable.js:944:16
      at process._tickCallback (node.js:442:13)
  </code></pre>
  
  <h1>Alternative solution is to use git:</h1>
  
  <pre><code>cordova plugin add https://github.com/apache/cordova-plugin-network-information
  </code></pre>
  
  <p>.</p>
  
  <pre><code>Fetching plugin "https://github.com/apache/cordova-plugin-network-information" via git clone
  Installing "org.apache.cordova.network-information" for android
  Installing "org.apache.cordova.network-information" for windows
  </code></pre>