<p dir="auto">During installation of new Angular project I get following error (from logs):</p>
<p dir="auto">20917 error cb() never called!<br>
20918 error This is an error with npm itself. Please report this error at:<br>
20919 error <a href="https://npm.community" rel="nofollow">https://npm.community</a></p>
<p dir="auto">I searched other issues, but I didn't find anything that was specifically this issue.</p>
<h3 dir="auto">Current Behavior:</h3>
<p dir="auto">With a valid (and working) npm v6 <code class="notranslate">~/.npmrc</code> that adds authentication for a private registry, npm v7 receives a 401 from the registry for any package (ex: <code class="notranslate">npm i -g npm@7</code>).</p>
<h3 dir="auto">Expected Behavior:</h3>
<p dir="auto">npm v7 should authenticate the same way npm v6 does.</p>
<h3 dir="auto">Steps To Reproduce:</h3>
<p dir="auto">My current (redacted) npmrc:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="progress=true
email=&quot;me@company.com&quot;

registry=https://artifactory.company.com/artifactory/api/npm/repo
//artifactory.company.com/artifactory/api/npm/:always-auth=true
//artifactory.company.com/artifactory/api/npm/:username=&quot;me@company.com&quot;
//artifactory.company.com/artifactory/api/npm/:password=&quot;api_token | base64&quot;"><pre class="notranslate"><code class="notranslate">progress=true
email="me@company.com"

registry=https://artifactory.company.com/artifactory/api/npm/repo
//artifactory.company.com/artifactory/api/npm/:always-auth=true
//artifactory.company.com/artifactory/api/npm/:username="me@company.com"
//artifactory.company.com/artifactory/api/npm/:password="api_token | base64"
</code></pre></div>
<p dir="auto">Install fresh node 14:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ nvm install 14
Downloading and installing node v14.15.1...
Local cache found: ${NVM_DIR}/.cache/bin/node-v14.15.1-darwin-x64/node-v14.15.1-darwin-x64.tar.xz
Checksums match! Using existing downloaded archive ${NVM_DIR}/.cache/bin/node-v14.15.1-darwin-x64/node-v14.15.1-darwin-x64.tar.xz
Now using node v14.15.1 (npm v6.14.8)"><pre class="notranslate"><code class="notranslate">$ nvm install 14
Downloading and installing node v14.15.1...
Local cache found: ${NVM_DIR}/.cache/bin/node-v14.15.1-darwin-x64/node-v14.15.1-darwin-x64.tar.xz
Checksums match! Using existing downloaded archive ${NVM_DIR}/.cache/bin/node-v14.15.1-darwin-x64/node-v14.15.1-darwin-x64.tar.xz
Now using node v14.15.1 (npm v6.14.8)
</code></pre></div>
<p dir="auto">Install npm v7 with npm v6 (<code class="notranslate">$HOME</code> redacted):</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ npm i -g npm@7
/$HOME/.nvm/versions/node/v14.15.1/bin/npm -&gt; /$HOME/.nvm/versions/node/v14.15.1/lib/node_modules/npm/bin/npm-cli.js
/$HOME/.nvm/versions/node/v14.15.1/bin/npx -&gt; /$HOME/.nvm/versions/node/v14.15.1/lib/node_modules/npm/bin/npx-cli.js
+ npm@7.0.11
added 51 packages from 19 contributors, removed 238 packages and updated 196 packages in 6.282s"><pre class="notranslate"><code class="notranslate">$ npm i -g npm@7
/$HOME/.nvm/versions/node/v14.15.1/bin/npm -&gt; /$HOME/.nvm/versions/node/v14.15.1/lib/node_modules/npm/bin/npm-cli.js
/$HOME/.nvm/versions/node/v14.15.1/bin/npx -&gt; /$HOME/.nvm/versions/node/v14.15.1/lib/node_modules/npm/bin/npx-cli.js
+ npm@7.0.11
added 51 packages from 19 contributors, removed 238 packages and updated 196 packages in 6.282s
</code></pre></div>
<p dir="auto">Install npm v7 with npm v7:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ npm i -g npm@7
npm ERR! code E401
npm ERR! Incorrect or missing password.
npm ERR! If you were trying to login, change your password, create an
npm ERR! authentication token or enable two-factor authentication then
npm ERR! that means you likely typed your password in incorrectly.
npm ERR! Please try again, or recover your password at:
npm ERR!     https://www.npmjs.com/forgot
npm ERR! 
npm ERR! If you were doing some other operation then your saved credentials are
npm ERR! probably out of date. To correct this please try logging in again with:
npm ERR!     npm login

npm ERR! A complete log of this run can be found in:
npm ERR!     /$HOME/.npm/_logs/2020-11-16T21_47_31_005Z-debug.log"><pre class="notranslate"><code class="notranslate">$ npm i -g npm@7
npm ERR! code E401
npm ERR! Incorrect or missing password.
npm ERR! If you were trying to login, change your password, create an
npm ERR! authentication token or enable two-factor authentication then
npm ERR! that means you likely typed your password in incorrectly.
npm ERR! Please try again, or recover your password at:
npm ERR!     https://www.npmjs.com/forgot
npm ERR! 
npm ERR! If you were doing some other operation then your saved credentials are
npm ERR! probably out of date. To correct this please try logging in again with:
npm ERR!     npm login

npm ERR! A complete log of this run can be found in:
npm ERR!     /$HOME/.npm/_logs/2020-11-16T21_47_31_005Z-debug.log
</code></pre></div>
<h3 dir="auto">Environment:</h3>
<ul dir="auto">
<li>OS: MacOS 10.15.7</li>
<li>Node: 14.15.1, also tested 15.x</li>
<li>npm: 7.0.11</li>
</ul>