<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">Environment variables are resolved by npx instead of being left intact to be dealt with by the invoked node executable.</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&gt; npx --version
8.1.3
&gt; npx argv-to-list $HOME '$HOME' 'price = $100' 
/Users/soft # regular shell environment variable resolution 
/Users/soft # why does npx resolve environment variables?
price = 00  # *ugh* this is bad..."><pre class="notranslate"><span class="pl-k">&gt;</span> npx --version
8.1.3
<span class="pl-k">&gt;</span> npx argv-to-list <span class="pl-smi">$HOME</span> <span class="pl-s"><span class="pl-pds">'</span>$HOME<span class="pl-pds">'</span></span> <span class="pl-s"><span class="pl-pds">'</span>price = $100<span class="pl-pds">'</span></span> 
/Users/soft <span class="pl-c"><span class="pl-c">#</span> regular shell environment variable resolution </span>
/Users/soft <span class="pl-c"><span class="pl-c">#</span> why does npx resolve environment variables?</span>
price = 00  <span class="pl-c"><span class="pl-c">#</span> *ugh* this is bad...</span></pre></div>
<h3 dir="auto">Expected Behavior</h3>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&gt; npx argv-to-list $HOME '$HOME' 'price = $100' 
/Users/soft
$HOME
price = $100"><pre class="notranslate"><span class="pl-k">&gt;</span> npx argv-to-list <span class="pl-smi">$HOME</span> <span class="pl-s"><span class="pl-pds">'</span>$HOME<span class="pl-pds">'</span></span> <span class="pl-s"><span class="pl-pds">'</span>price = $100<span class="pl-pds">'</span></span> 
/Users/soft
<span class="pl-smi">$HOME</span>
price = <span class="pl-smi">$1</span>00</pre></div>
<h3 dir="auto">Steps To Reproduce</h3>
<p dir="auto">cf above</p>
<h3 dir="auto">Environment</h3>
<ul dir="auto">
<li>npm: 8.1.3</li>
<li>Node: 16.13.0</li>
<li>OS: macOS 10.15.7 (19H1419)</li>
<li>platform: Darwin 19.6.0</li>
<li>npm config:</li>
</ul>
<div class="highlight highlight-source-ini notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="; &quot;user&quot; config from /Users/soft/.npmrc

@engine262:registry = &quot;https://npm.pkg.github.com/&quot; 
//npm.pkg.github.com/:_authToken = (protected) 
//registry.npmjs.org/:_authToken = (protected) 
node_gyp = &quot;/Users/soft/.nvm/versions/node/v14.18.0/lib/node_modules/node-gyp/bin/node-gyp.js&quot; 

; node bin location = /Users/soft/.nvm/versions/node/v16.13.0/bin/node
; cwd = /Users/soft/Desktop/swag
; HOME = /Users/soft
; Run `npm config ls -l` to show all defaults."><pre class="notranslate"><span class="pl-c"><span class="pl-c">;</span> "user" config from /Users/soft/.npmrc</span>

@engine262:<span class="pl-k">registry</span> = <span class="pl-s"><span class="pl-pds">"</span>https://npm.pkg.github.com/<span class="pl-pds">"</span></span> 
//npm.pkg.github.com/:<span class="pl-k">_authToken</span> = (protected) 
//registry.npmjs.org/:<span class="pl-k">_authToken</span> = (protected) 
<span class="pl-k">node_gyp</span> = <span class="pl-s"><span class="pl-pds">"</span>/Users/soft/.nvm/versions/node/v14.18.0/lib/node_modules/node-gyp/bin/node-gyp.js<span class="pl-pds">"</span></span> 

<span class="pl-c"><span class="pl-c">;</span> node bin location = /Users/soft/.nvm/versions/node/v16.13.0/bin/node</span>
<span class="pl-c"><span class="pl-c">;</span> cwd = /Users/soft/Desktop/swag</span>
<span class="pl-c"><span class="pl-c">;</span> HOME = /Users/soft</span>
<span class="pl-c"><span class="pl-c">;</span> Run `npm config ls -l` to show all defaults.</span></pre></div>
<p dir="auto">Continuously getting this error when using NPM-cli, executing the command "npm ci":<br>
10:58:07  + npm ci<br>
10:58:34  npm ERR! cb() never called!<br>
10:58:34<br>
10:58:34  npm ERR! This is an error with npm itself. Please report this error at:<br>
10:58:34  npm ERR!     <a href="https://npm.community" rel="nofollow">https://npm.community</a></p>
<p dir="auto">Would you please take a look? This is not the first time notice that.</p>