title: NPM install shows error
body: <p>I have tried to uninstall and reinstall angular cli, for which i have used,</p>
  
  <pre><code>sudo npm uninstall -g @angular/cli
  sudo npm install -g @angular/cli
  </code></pre>
  
  <p>Whenever i give <strong>npm install</strong> it is showing the error,</p>
  
  <pre><code>npm ERR! Unexpected token &lt; in JSON at position 1 while parsing near '
  npm ERR! &lt;!doctype html&gt;
  npm ERR! &lt;htm...'
  
  npm ERR! A complete log of this run can be found in:
  npm ERR!     /home/izchnl050/.npm/_logs/2018-08-07T08_02_19_674Z-debug.log
  </code></pre>
  
  <p>And the log file consists the following,</p>
  
  <pre><code>0 info it worked if it ends with ok
  1 verbose cli [ '/usr/bin/node',
  1 verbose cli   '/usr/bin/npm',
  1 verbose cli   'install',
  1 verbose cli   '-g',
  1 verbose cli   '@angular/cli' ]
  2 info using npm@6.2.0
  3 info using node@v10.8.0
  4 verbose npm-session 6b584ff5794304f7
  5 silly install loadCurrentTree
  6 silly install readGlobalPackageData
  7 http fetch GET 200 https://www.npmjs.com/@angular%2fcli 1450ms (from cache)
  8 silly fetchPackageMetaData error for @angular/cli@latest Unexpected token &lt; in JSON at position 1 while parsing near '
  8 silly fetchPackageMetaData &lt;!doctype html&gt;
  8 silly fetchPackageMetaData &lt;htm...'
  9 timing stage:rollbackFailedOptional Completed in 1ms
  10 timing stage:runTopLevelLifecycles Completed in 1690ms
  11 verbose stack SyntaxError: Unexpected token &lt; in JSON at position 1 while parsing near '
  11 verbose stack &lt;!doctype html&gt;
  11 verbose stack &lt;htm...'
  11 verbose stack     at JSON.parse (&lt;anonymous&gt;)
  11 verbose stack     at parseJson (/usr/lib/node_modules/npm/node_modules/json-parse-better-errors/index.js:7:17)
  11 verbose stack     at consumeBody.call.then.buffer (/usr/lib/node_modules/npm/node_modules/node-fetch-npm/src/body.js:96:50)
  11 verbose stack     at process._tickCallback (internal/process/next_tick.js:68:7)
  12 verbose cwd /home/izchnl050
  13 verbose Linux 4.15.0-29-generic
  14 verbose argv "/usr/bin/node" "/usr/bin/npm" "install" "-g" "@angular/cli"
  15 verbose node v10.8.0
  16 verbose npm  v6.2.0
  17 error Unexpected token &lt; in JSON at position 1 while parsing near '
  17 error &lt;!doctype html&gt;
  17 error &lt;htm...'
  18 verbose exit [ 1, true ]
  </code></pre>
  
  <p>Based on the other solutions, tried with the following,</p>
  
  <pre><code>npm cache clean --force
  </code></pre>
  
  <p>Uninstalled node and again installed node but there is no use.</p>
  
  <p>If i give npm install it showing the above error everytime.</p>
  
  <pre><code>npm -v = 6.2.0
  node -v = v10.8.0
  </code></pre>
  
  <p>Kindly help me to fix this issue and to continue with the workflow.</p>