<h1 dir="auto">What / Why</h1>
<p dir="auto"><code class="notranslate">npm ERR! cb() never called!</code> every time I try to <code class="notranslate">install -g eslint</code></p>
<h2 dir="auto">When</h2>
<p dir="auto">Everytime I try to install <code class="notranslate">eslint</code> via:<br>
<code class="notranslate">sudo npm install -g eslint</code></p>
<h2 dir="auto">Where</h2>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ npm -v
6.13.4
$ uname -a
Linux debian10 4.19.0-6-amd64 #1 SMP Debian 4.19.67-2+deb10u2 (2019-11-11) x86_64 GNU/Linux"><pre class="notranslate"><code class="notranslate">$ npm -v
6.13.4
$ uname -a
Linux debian10 4.19.0-6-amd64 #1 SMP Debian 4.19.67-2+deb10u2 (2019-11-11) x86_64 GNU/Linux
</code></pre></div>
<h2 dir="auto">How</h2>
<h3 dir="auto">Current Behavior</h3>

<p dir="auto">Installing <code class="notranslate">eslint</code>always crashes with an error like this:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="npm ERR! cb() never called!

npm ERR! This is an error with npm itself. Please report this error at:
npm ERR!     &lt;https://npm.community&gt;

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2019-12-16T12_34_57_744Z-debug.log"><pre class="notranslate"><code class="notranslate">npm ERR! cb() never called!

npm ERR! This is an error with npm itself. Please report this error at:
npm ERR!     &lt;https://npm.community&gt;

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2019-12-16T12_34_57_744Z-debug.log
</code></pre></div>
<p dir="auto">I have tried <code class="notranslate">npm cache clean --force</code> but that did not help.</p>
<h3 dir="auto">Steps to Reproduce</h3>
<p dir="auto">Update <code class="notranslate">npm</code> to latest and install <code class="notranslate">eslint</code>:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ms@debian10:~$ sudo npm install -g npm@latest
/usr/local/bin/npm -&gt; /usr/local/lib/node_modules/npm/bin/npm-cli.js
/usr/local/bin/npx -&gt; /usr/local/lib/node_modules/npm/bin/npx-cli.js
+ npm@6.13.4
updated 1 package in 6.632s
ms@debian10:~$ sudo npm install -g eslint
npm ERR! cb() never called!

npm ERR! This is an error with npm itself. Please report this error at:
npm ERR!     &lt;https://npm.community&gt;

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2019-12-16T12_34_57_744Z-debug.log"><pre class="notranslate"><code class="notranslate">ms@debian10:~$ sudo npm install -g npm@latest
/usr/local/bin/npm -&gt; /usr/local/lib/node_modules/npm/bin/npm-cli.js
/usr/local/bin/npx -&gt; /usr/local/lib/node_modules/npm/bin/npx-cli.js
+ npm@6.13.4
updated 1 package in 6.632s
ms@debian10:~$ sudo npm install -g eslint
npm ERR! cb() never called!

npm ERR! This is an error with npm itself. Please report this error at:
npm ERR!     &lt;https://npm.community&gt;

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2019-12-16T12_34_57_744Z-debug.log
</code></pre></div>
<h3 dir="auto">Expected Behavior</h3>
<p dir="auto">The package should be installed successfully</p>
<h2 dir="auto">Who</h2>
<ul dir="auto">
<li>n/a</li>
</ul>
<h2 dir="auto">References</h2>
<p dir="auto">Collection of similar issues in ticket <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="519804109" data-permission-text="Title is private" data-url="https://github.com/npm/cli/issues/417" data-hovercard-type="issue" data-hovercard-url="/npm/cli/issues/417/hovercard" href="https://github.com/npm/cli/issues/417">#417</a></p>
<h3 dir="auto">Is there an existing issue for this?</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the existing issues</li>
</ul>
<h3 dir="auto">This issue exists in the latest npm version</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I am using the latest npm</li>
</ul>
<h3 dir="auto">Current Behavior</h3>
<p dir="auto">I'm trying to run:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="npx https://gist.github.com/kentcdodds/bb452ffe53a5caa3600197e1d8005733"><pre class="notranslate"><code class="notranslate">npx https://gist.github.com/kentcdodds/bb452ffe53a5caa3600197e1d8005733
</code></pre></div>
<p dir="auto">However I get:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="sh: workshop-setup: command not found"><pre class="notranslate"><code class="notranslate">sh: workshop-setup: command not found
</code></pre></div>
<p dir="auto">For context, I use this for step of my workshop repositories. It checks that learner's machines have the correct versions of things installed, installs dependencies, and runs validation to make sure things were installed correctly. This worked before I updated to npx v8.</p>
<h3 dir="auto">Expected Behavior</h3>
<p dir="auto">I expect the bin of the gist's package.json to be run as previous versions of npx as recent as v7.</p>
<h3 dir="auto">Steps To Reproduce</h3>
<ol dir="auto">
<li>In any environment</li>
<li>With any config</li>
<li>Run <code class="notranslate">npx https://gist.github.com/kentcdodds/bb452ffe53a5caa3600197e1d8005733</code></li>
<li>See the above error</li>
</ol>
<h3 dir="auto">Environment</h3>
<ul dir="auto">
<li>npm: latest</li>
<li>Node.js: latest</li>
<li>OS Name: any</li>
<li>System Model Name: any</li>
<li>npm config: any</li>
</ul>
<p dir="auto">(All my students are running into this. Even my CI: <a href="https://github.com/kentcdodds/react-fundamentals/runs/6989184285?check_suite_focus=true">https://github.com/kentcdodds/react-fundamentals/runs/6989184285?check_suite_focus=true</a>)</p>