title: Error: Text data outside of root node - when installing cordova plugin
body: <p>I sometimes get an error when trying to install any cordova plugin ionic (usually after around 6pm GMT+0).</p>
  
  <p>These are with plugins from both npm and GitHub, and the error I get is:</p>
  
  <pre><code>Error: Text data outside of root node.
  Line: 155
  Column: 1
  Char: "
  </code></pre>
  
  <p>The install command will be something along the lines of </p>
  
  <p><code>ionic cordova plugin add cordova-plugin-network-information@1.3.1</code></p>
  
  <p>It really does not matter what plugin it is, because as mentioned it happens for a number of them, they all get the same error. It will work perfectly ok in the morning, and then suddenly it shuts down. </p>
  
  <p>I have tried on multiple computers, on multiple separate internet connections (from the UK), and I even have a script that reruns the commands if they fail, so it will attempt to install around 20 plugins continuously until they get installed for however long I run my script. I ran it for an hour constantly, and not a single one was installed.</p>
  
  <p>I also checked the status of npm and GitHub if they were perhaps down, but they seemed to be up and running as usual...</p>
  
  <p>Any ideas would be greatly appreciated</p>