<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">Current Behavior</h3>
<p dir="auto">I have some global installed packages which I can't see in <code class="notranslate">npm -g ls</code>. I also can't see them being outdated with <code class="notranslate">npm -g outdated</code>. These packages are eslint, yarn, semver<br>
I tried to remove and re-install them(<code class="notranslate">npm -g remove eslint yarn semver &amp;&amp; npm -g i eslint yarn semver</code>) But no luck, they still won't appear in <code class="notranslate">npm -g ls</code>. I also purged npm cache once before re-installation</p>
<h3 dir="auto">Expected Behavior</h3>
<p dir="auto">Update/View these packages like others</p>
<h3 dir="auto">Steps To Reproduce</h3>
<ol dir="auto">
<li><code class="notranslate">npm -g ls</code></li>
<li>I have 20 packages in %appdata%\npm\node_modules but I only see 17</li>
</ol>
<h3 dir="auto">Environment</h3>
<ul dir="auto">
<li>OS: Windows 10 21H1</li>
<li>Node: 14.18.1</li>
<li>npm: 8.1.0</li>
</ul>
<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">Current Behavior</h3>
<p dir="auto">I have ESLint 8.0.0 installed globally via  <code class="notranslate">npm install -g eslint</code> (using Node v16.11.0 x64/npm v8.0.0, as well as with npm7.x, on win11).</p>
<p dir="auto">The issue is that, if I run <code class="notranslate">npm list -g</code> then unfortunately ESLint is not listed (it should show: <code class="notranslate">eslint@8.0.0</code>).</p>
<p dir="auto">For reference, all my other globally installed packages are displayed ok:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&gt; npm list -g  (or: npm list -g --depth=0)

C:\Users\Kostas\AppData\Roaming\npm
+-- npm-check-updates@11.8.5
+-- npm-gui@3.1.1
+-- prettier@2.4.1
+-- stylelint@13.13.1
+-- typescript@4.4.3
+-- web-ext@6.4.0
`-- zx@4.2.0"><pre class="notranslate"><code class="notranslate">&gt; npm list -g  (or: npm list -g --depth=0)

C:\Users\Kostas\AppData\Roaming\npm
+-- npm-check-updates@11.8.5
+-- npm-gui@3.1.1
+-- prettier@2.4.1
+-- stylelint@13.13.1
+-- typescript@4.4.3
+-- web-ext@6.4.0
`-- zx@4.2.0
</code></pre></div>
<p dir="auto">I have tried uninstalling+reinstalling ESLInt without any difference. I have also tried in a virtual machine (=clean install of Node) with same results.</p>
<p dir="auto">But, with this command (using <code class="notranslate">ls</code> of 'Git for Windows' installed Bash), ESLint is included in the list:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&gt; ls -l $(npm root -g)

    Directory: C:\Users\Kostas\AppData\Roaming\npm\node_modules

Mode                 LastWriteTime         Length Name
----                 -------------         ------ ----
d----          12/10/2021    15:40                eslint
d----          12/10/2021    15:40                npm-check-updates
d----          12/10/2021    15:40                npm-gui
d----          12/10/2021    15:40                prettier
d----          12/10/2021    15:40                stylelint
d----          12/10/2021    15:40                typescript
d----          12/10/2021    15:40                web-ext
d----          12/10/2021    15:40                zx"><pre class="notranslate"><code class="notranslate">&gt; ls -l $(npm root -g)

    Directory: C:\Users\Kostas\AppData\Roaming\npm\node_modules

Mode                 LastWriteTime         Length Name
----                 -------------         ------ ----
d----          12/10/2021    15:40                eslint
d----          12/10/2021    15:40                npm-check-updates
d----          12/10/2021    15:40                npm-gui
d----          12/10/2021    15:40                prettier
d----          12/10/2021    15:40                stylelint
d----          12/10/2021    15:40                typescript
d----          12/10/2021    15:40                web-ext
d----          12/10/2021    15:40                zx
</code></pre></div>
<h3 dir="auto">Expected Behavior</h3>
<p dir="auto"><code class="notranslate">npm list -g</code> should show: <code class="notranslate">eslint@8.0.0</code> .</p>
<h3 dir="auto">Steps To Reproduce</h3>
<ol dir="auto">
<li>In a fresh Node x64 v16.11.0/npm v8.0.0 (or v16.10.0/npm v7.24.0) install ESLint via <code class="notranslate">npm install -g eslint</code></li>
<li>(no special config)</li>
<li>Run <code class="notranslate">npm list -g</code> (or <code class="notranslate">npm list -g --depth=0</code>)</li>
<li>Notice that ESLint is not listed.</li>
</ol>
<h3 dir="auto">Environment</h3>
<ul dir="auto">
<li>OS: win 11 x64</li>
<li>Node: 16.10.0/16.11.0</li>
<li>npm: 7.24.0/8.0.0</li>
</ul>