title: npm error E401: Unable to authenticate, need: Basic realm="GitHub"
body: <p>I have an issue with node v10.15.1 and npm v6.14.15</p>
  <p>Running <code>npm install</code> into the root folder of a project, I have the following error:</p>
  <pre><code>npm ERR! code E401
  npm ERR! Unable to authenticate, need: Basic realm=&quot;GitHub&quot;
  
  npm ERR! A complete log of this run can be found in:
  npm ERR!     /Users/myuser/.npm/_logs/2022-08-10T17_31_09_840Z-debug.log
  </code></pre>
  <p>The log file reports this:</p>
  <pre><code>2675 verbose stack Error: Unable to authenticate, need: Basic realm=&quot;GitHub&quot;
  2675 verbose stack     at res.buffer.catch.then.body (/Users/myuser/.nvm/versions/node/v10.15.1/lib/node_modules/npm/node_modules/npm-registry-fetch/check-response.js:107:17)
  2675 verbose stack     at process._tickCallback (internal/process/next_tick.js:68:7)
  2676 verbose statusCode 401
  2677 verbose pkgid socket.io-client@https://github.com/substack/socket.io-client/tarball/master
  2678 verbose cwd /Users/myuser/myproject
  2679 verbose Darwin 20.6.0
  2680 verbose argv &quot;/Users/myuser/.nvm/versions/node/v10.15.1/bin/node&quot; &quot;/Users/myuser/.nvm/versions/node/v10.15.1/bin/npm&quot; &quot;install&quot;
  2681 verbose node v10.15.1
  2682 verbose npm  v6.14.15
  2683 error code E401
  2684 error Unable to authenticate, need: Basic realm=&quot;GitHub&quot;
  2685 verbose exit [ 1, true ]
  </code></pre>
  <p>I have other projects that compile perfectly with node v10.15.1 and npm v6.14.15</p>
  <p>Any help will be appreciated.</p>
  <p>Thanks</p>