title: npm ERR! premature close when using npm install
body: <p>Getting [..................] / rollbackFailedOptional: verb npm-session 5d754927a47910d2 on installing from github. </p>
  
  <p>Tried multiple things like cleaning cache, resetting proxy, etc but none of them work.</p>
  
  <blockquote>
    <p>sudo npm install --save github:saarthak-jain/Blockchainbois-Voting</p>
  </blockquote>
  
  <p>The log file attached is</p>
  
  <pre><code>0 info it worked if it ends with ok
  1 verbose cli [
  1 verbose cli   '/usr/local/bin/node',
  1 verbose cli   '/usr/local/bin/npm',
  1 verbose cli   'install',
  1 verbose cli   'saarthak-jain/Blockchainbois-Voting'
  1 verbose cli ]
  2 info using npm@6.9.0
  3 info using node@v12.2.0
  4 verbose npm-session 5d754927a47910d2
  5 silly install loadCurrentTree
  6 silly install readLocalPackageData
  7 silly fetchPackageMetaData error for github:saarthak-jain/Blockchainbois-Voting premature close
  8 timing stage:rollbackFailedOptional Completed in 0ms
  9 timing stage:runTopLevelLifecycles Completed in 7432ms
  10 verbose stack Error: premature close
  10 verbose stack     at PassThrough.onclose (/usr/local/lib/node_modules/npm/node_modules/end-of-stream/index.js:47:67)
  10 verbose stack     at PassThrough.emit (events.js:201:15)
  10 verbose stack     at emitCloseNT (internal/streams/destroy.js:68:8)
  10 verbose stack     at processTicksAndRejections (internal/process/task_queues.js:84:9)
  11 verbose cwd /home/saarthak/FrontEnd
  12 verbose Linux 4.18.0-18-generic
  13 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "saarthak-jain/Blockchainbois-Voting"
  14 verbose node v12.2.0
  15 verbose npm  v6.9.0
  16 error premature close
  17 verbose exit [ 1, true ]
  </code></pre>