title: NPM install error "Unexpected token < in JSON at position 0"
body: <p>I'm using npm install and validate the package JSON content is valid and I'm getting the following error:</p>
  <p>After reading on the web, I did <code>&quot;rm -f package-lock.json &amp;&amp; npm install&quot;</code> (even if I didn’t see any package lock there) and did also <code>npm cache clean -f</code> which doesn’t help, also configured registry.</p>
  <p>See <em><a href="https://stackoverflow.com/questions/16280382/cant-install-any-package-with-node-npm">Can&#39;t install any package with node npm</a></em></p>
  <p>I'm using the latest npm, 6.2.0.</p>
  <p>The error in the logs is:</p>
  <pre><code>159 silly saveTree ├── express@4.16.3
  159 silly saveTree ├── passport-http@0.3.0
  159 silly saveTree └── passport@0.3.2
  160 verbose stack SyntaxError: Unexpected token &lt; in JSON at position 0 while parsing near '&lt;html&gt;
  160 verbose stack &lt;head&gt;&lt;title&gt;...'
  160 verbose stack     at JSON.parse (&lt;anonymous&gt;)
  160 verbose stack     at parseJson (/usr/local/lib/node_modules/npm/node_modules/json-parse-better-errors/index.js:7:17)
  160 verbose stack     at consumeBody.call.then.buffer (/usr/local/lib/node_modules/npm/node_modules/node-fetch-npm/src/body.js:96:50)
  160 verbose stack     at &lt;anonymous&gt;
  160 verbose stack     at process._tickCallback (internal/process/next_tick.js:188:7)
  </code></pre>
  <p>Is there is something else I can do?</p>