title: npm ERR! Unexpected token < in JSON at position 0 while parsing near '<!doctype html><htm...'
body: <p>I am trying to install react on command line  <code>npm install react --save</code> and i am getting error message <code>npm ERR! Unexpected token &lt; in JSON at position 0 while parsing near '&lt;!doctype html&gt;&lt;htm...'</code></p>
  
  <p><strong>I have already tried these options</strong></p>
  
  <ul>
  <li>npm cache clean --force</li>
  <li>npm cache clear --force</li>
  <li>Reinstalling npm and node</li>
  <li>Switching npm registry</li>
  </ul>
  
  <p>Help how do i solve this and install successfully.</p>