Commit 552b12baceb for nodejs
commit 552b12bacebbc3f9ce25896c2bf332723bf1deb4
Author: npm team <ops+robot@npmjs.com>
Date: Fri Nov 20 08:17:52 2026 -0800
deps: upgrade npm to 12.2.3
PR-URL: https://github.com/nodejs/node/pull/67584
Reviewed-By: René <contact.9a5d6388@renegade334.me.uk>
Reviewed-By: Richard Lau <richard.lau@ibm.com>
Reviewed-By: Mike McCready <66998419+MikeMcC399@users.noreply.github.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
diff --git a/deps/npm/docs/content/commands/npm-ci.md b/deps/npm/docs/content/commands/npm-ci.md
index af76af434cb..a4b260b5a6f 100644
--- a/deps/npm/docs/content/commands/npm-ci.md
+++ b/deps/npm/docs/content/commands/npm-ci.md
@@ -324,6 +324,11 @@ Optional dependencies that cannot be installed on the current platform or
engine (a non-matching `os`, `cpu`, or `libc`) are not flagged, because
their install scripts never run.
+Installation checks skip unused entries with no package parent or incoming
+links. Local link targets that installation can still rebuild remain subject
+to this check. `npm rebuild` and `npm install-scripts ls` still check unused
+packages on disk.
+
#### `dangerously-allow-all-scripts`
diff --git a/deps/npm/docs/content/commands/npm-exec.md b/deps/npm/docs/content/commands/npm-exec.md
index 95789626f28..fd17f385206 100644
--- a/deps/npm/docs/content/commands/npm-exec.md
+++ b/deps/npm/docs/content/commands/npm-exec.md
@@ -199,6 +199,11 @@ Optional dependencies that cannot be installed on the current platform or
engine (a non-matching `os`, `cpu`, or `libc`) are not flagged, because
their install scripts never run.
+Installation checks skip unused entries with no package parent or incoming
+links. Local link targets that installation can still rebuild remain subject
+to this check. `npm rebuild` and `npm install-scripts ls` still check unused
+packages on disk.
+
#### `dangerously-allow-all-scripts`
diff --git a/deps/npm/docs/content/commands/npm-install-ci-test.md b/deps/npm/docs/content/commands/npm-install-ci-test.md
index 0103ca86ac5..d65fe2dca1a 100644
--- a/deps/npm/docs/content/commands/npm-install-ci-test.md
+++ b/deps/npm/docs/content/commands/npm-install-ci-test.md
@@ -278,6 +278,11 @@ Optional dependencies that cannot be installed on the current platform or
engine (a non-matching `os`, `cpu`, or `libc`) are not flagged, because
their install scripts never run.
+Installation checks skip unused entries with no package parent or incoming
+links. Local link targets that installation can still rebuild remain subject
+to this check. `npm rebuild` and `npm install-scripts ls` still check unused
+packages on disk.
+
#### `dangerously-allow-all-scripts`
diff --git a/deps/npm/docs/content/commands/npm-install-scripts.md b/deps/npm/docs/content/commands/npm-install-scripts.md
index 4182392c9a3..1dbfa4ecc4d 100644
--- a/deps/npm/docs/content/commands/npm-install-scripts.md
+++ b/deps/npm/docs/content/commands/npm-install-scripts.md
@@ -28,6 +28,9 @@ Dependency install scripts are blocked by default. Install commands
silently skip lifecycle scripts for any dependency that does not have a
matching entry in `allowScripts`, and end with a list of the packages
whose scripts were skipped so you can review them here.
+These warnings omit disconnected unused entries that installation cannot
+build. Local link targets that can still be rebuilt remain subject to the
+policy.
This command only works inside a project that has a `package.json`. Running
it with `--global` (`-g`) fails with an `EGLOBAL` error, since global
@@ -62,6 +65,9 @@ unreviewed install scripts.
`ls` is read-only: it lists every package whose install scripts are not yet
covered by `allowScripts`, without modifying `package.json`.
+This includes unreviewed extraneous packages, which are installed but not
+required by any dependency. These packages can still cause
+`npm rebuild --strict-allow-scripts` to fail.
`prune` removes `allowScripts` entries that no longer match an installed
package with an install script, either because the package is no longer
diff --git a/deps/npm/docs/content/commands/npm-install-test.md b/deps/npm/docs/content/commands/npm-install-test.md
index ed5ed2bd03f..175bb7c4544 100644
--- a/deps/npm/docs/content/commands/npm-install-test.md
+++ b/deps/npm/docs/content/commands/npm-install-test.md
@@ -355,6 +355,11 @@ Optional dependencies that cannot be installed on the current platform or
engine (a non-matching `os`, `cpu`, or `libc`) are not flagged, because
their install scripts never run.
+Installation checks skip unused entries with no package parent or incoming
+links. Local link targets that installation can still rebuild remain subject
+to this check. `npm rebuild` and `npm install-scripts ls` still check unused
+packages on disk.
+
#### `dangerously-allow-all-scripts`
diff --git a/deps/npm/docs/content/commands/npm-install.md b/deps/npm/docs/content/commands/npm-install.md
index 19efd10b711..2aaa1697d76 100644
--- a/deps/npm/docs/content/commands/npm-install.md
+++ b/deps/npm/docs/content/commands/npm-install.md
@@ -696,6 +696,11 @@ Optional dependencies that cannot be installed on the current platform or
engine (a non-matching `os`, `cpu`, or `libc`) are not flagged, because
their install scripts never run.
+Installation checks skip unused entries with no package parent or incoming
+links. Local link targets that installation can still rebuild remain subject
+to this check. `npm rebuild` and `npm install-scripts ls` still check unused
+packages on disk.
+
#### `dangerously-allow-all-scripts`
diff --git a/deps/npm/docs/content/commands/npm-ls.md b/deps/npm/docs/content/commands/npm-ls.md
index 7a0a37f855b..ca18270b813 100644
--- a/deps/npm/docs/content/commands/npm-ls.md
+++ b/deps/npm/docs/content/commands/npm-ls.md
@@ -23,7 +23,7 @@ Note that nested packages will *also* show the paths to the specified packages.
For example, running `npm ls promzard` in npm's source tree will show:
```bash
-npm@12.2.2 /path/to/npm
+npm@12.2.3 /path/to/npm
└─┬ init-package-json@0.0.4
└── promzard@0.1.5
```
diff --git a/deps/npm/docs/content/commands/npm-rebuild.md b/deps/npm/docs/content/commands/npm-rebuild.md
index f3107c60567..b6e71568f51 100644
--- a/deps/npm/docs/content/commands/npm-rebuild.md
+++ b/deps/npm/docs/content/commands/npm-rebuild.md
@@ -144,6 +144,11 @@ Optional dependencies that cannot be installed on the current platform or
engine (a non-matching `os`, `cpu`, or `libc`) are not flagged, because
their install scripts never run.
+Installation checks skip unused entries with no package parent or incoming
+links. Local link targets that installation can still rebuild remain subject
+to this check. `npm rebuild` and `npm install-scripts ls` still check unused
+packages on disk.
+
#### `dangerously-allow-all-scripts`
diff --git a/deps/npm/docs/content/commands/npm-update.md b/deps/npm/docs/content/commands/npm-update.md
index 1dd224318f9..3eeb3e0559b 100644
--- a/deps/npm/docs/content/commands/npm-update.md
+++ b/deps/npm/docs/content/commands/npm-update.md
@@ -353,6 +353,11 @@ Optional dependencies that cannot be installed on the current platform or
engine (a non-matching `os`, `cpu`, or `libc`) are not flagged, because
their install scripts never run.
+Installation checks skip unused entries with no package parent or incoming
+links. Local link targets that installation can still rebuild remain subject
+to this check. `npm rebuild` and `npm install-scripts ls` still check unused
+packages on disk.
+
#### `dangerously-allow-all-scripts`
diff --git a/deps/npm/docs/content/commands/npm.md b/deps/npm/docs/content/commands/npm.md
index a8717a3a14d..2aab25113cf 100644
--- a/deps/npm/docs/content/commands/npm.md
+++ b/deps/npm/docs/content/commands/npm.md
@@ -14,7 +14,7 @@ Note: This command is unaware of workspaces.
### Version
-12.2.2
+12.2.3
### Description
diff --git a/deps/npm/docs/content/using-npm/config.md b/deps/npm/docs/content/using-npm/config.md
index 8d8d0af983d..49ba469ff2d 100644
--- a/deps/npm/docs/content/using-npm/config.md
+++ b/deps/npm/docs/content/using-npm/config.md
@@ -2040,6 +2040,11 @@ Optional dependencies that cannot be installed on the current platform or
engine (a non-matching `os`, `cpu`, or `libc`) are not flagged, because
their install scripts never run.
+Installation checks skip unused entries with no package parent or incoming
+links. Local link targets that installation can still rebuild remain subject
+to this check. `npm rebuild` and `npm install-scripts ls` still check unused
+packages on disk.
+
#### `strict-npmrc`
diff --git a/deps/npm/docs/output/commands/npm-access.html b/deps/npm/docs/output/commands/npm-access.html
index e8bc244d780..5449a6f811f 100644
--- a/deps/npm/docs/output/commands/npm-access.html
+++ b/deps/npm/docs/output/commands/npm-access.html
@@ -186,9 +186,9 @@ npm command-line interface
<section id="content">
<header class="title">
-<h1 id="----npm-access----1222">
+<h1 id="----npm-access----1223">
<span>npm-access</span>
- <span class="version">@12.2.2</span>
+ <span class="version">@12.2.3</span>
</h1>
<span class="description">Set access level on published packages</span>
</header>
diff --git a/deps/npm/docs/output/commands/npm-approve-scripts.html b/deps/npm/docs/output/commands/npm-approve-scripts.html
index 25de4b91fc2..731b6b2d64c 100644
--- a/deps/npm/docs/output/commands/npm-approve-scripts.html
+++ b/deps/npm/docs/output/commands/npm-approve-scripts.html
@@ -186,9 +186,9 @@ npm command-line interface
<section id="content">
<header class="title">
-<h1 id="----npm-approve-scripts----1222">
+<h1 id="----npm-approve-scripts----1223">
<span>npm-approve-scripts</span>
- <span class="version">@12.2.2</span>
+ <span class="version">@12.2.3</span>
</h1>
<span class="description">Approve install scripts for specific dependencies</span>
</header>
diff --git a/deps/npm/docs/output/commands/npm-audit.html b/deps/npm/docs/output/commands/npm-audit.html
index af1a3c82a9a..1fbc29d4b72 100644
--- a/deps/npm/docs/output/commands/npm-audit.html
+++ b/deps/npm/docs/output/commands/npm-audit.html
@@ -186,9 +186,9 @@ npm command-line interface
<section id="content">
<header class="title">
-<h1 id="----npm-audit----1222">
+<h1 id="----npm-audit----1223">
<span>npm-audit</span>
- <span class="version">@12.2.2</span>
+ <span class="version">@12.2.3</span>
</h1>
<span class="description">Run a security audit</span>
</header>
diff --git a/deps/npm/docs/output/commands/npm-bugs.html b/deps/npm/docs/output/commands/npm-bugs.html
index b51e7d05a90..5cf5136b11c 100644
--- a/deps/npm/docs/output/commands/npm-bugs.html
+++ b/deps/npm/docs/output/commands/npm-bugs.html
@@ -186,9 +186,9 @@ npm command-line interface
<section id="content">
<header class="title">
-<h1 id="----npm-bugs----1222">
+<h1 id="----npm-bugs----1223">
<span>npm-bugs</span>
- <span class="version">@12.2.2</span>
+ <span class="version">@12.2.3</span>
</h1>
<span class="description">Report bugs for a package in a web browser</span>
</header>
diff --git a/deps/npm/docs/output/commands/npm-cache.html b/deps/npm/docs/output/commands/npm-cache.html
index 1e786028ba5..e7d0c015193 100644
--- a/deps/npm/docs/output/commands/npm-cache.html
+++ b/deps/npm/docs/output/commands/npm-cache.html
@@ -186,9 +186,9 @@ npm command-line interface
<section id="content">
<header class="title">
-<h1 id="----npm-cache----1222">
+<h1 id="----npm-cache----1223">
<span>npm-cache</span>
- <span class="version">@12.2.2</span>
+ <span class="version">@12.2.3</span>
</h1>
<span class="description">Manipulates packages cache</span>
</header>
diff --git a/deps/npm/docs/output/commands/npm-ci.html b/deps/npm/docs/output/commands/npm-ci.html
index 5ad424ab03c..3f66ba2b770 100644
--- a/deps/npm/docs/output/commands/npm-ci.html
+++ b/deps/npm/docs/output/commands/npm-ci.html
@@ -186,9 +186,9 @@ npm command-line interface
<section id="content">
<header class="title">
-<h1 id="----npm-ci----1222">
+<h1 id="----npm-ci----1223">
<span>npm-ci</span>
- <span class="version">@12.2.2</span>
+ <span class="version">@12.2.3</span>
</h1>
<span class="description">Clean install a project</span>
</header>
@@ -441,6 +441,10 @@ setting.</p>
<p>Optional dependencies that cannot be installed on the current platform or
engine (a non-matching <code>os</code>, <code>cpu</code>, or <code>libc</code>) are not flagged, because
their install scripts never run.</p>
+<p>Installation checks skip unused entries with no package parent or incoming
+links. Local link targets that installation can still rebuild remain subject
+to this check. <code>npm rebuild</code> and <code>npm install-scripts ls</code> still check unused
+packages on disk.</p>
<h4 id="dangerously-allow-all-scripts"><code>dangerously-allow-all-scripts</code></h4>
<ul>
<li>Default: false</li>
diff --git a/deps/npm/docs/output/commands/npm-completion.html b/deps/npm/docs/output/commands/npm-completion.html
index 1cf6ffa7c6f..ee8f2e3df4f 100644
--- a/deps/npm/docs/output/commands/npm-completion.html
+++ b/deps/npm/docs/output/commands/npm-completion.html
@@ -186,9 +186,9 @@ npm command-line interface
<section id="content">
<header class="title">
-<h1 id="----npm-completion----1222">
+<h1 id="----npm-completion----1223">
<span>npm-completion</span>
- <span class="version">@12.2.2</span>
+ <span class="version">@12.2.3</span>
</h1>
<span class="description">Tab Completion for npm</span>
</header>
diff --git a/deps/npm/docs/output/commands/npm-config.html b/deps/npm/docs/output/commands/npm-config.html
index 6cb35feff11..4b08a07ca6b 100644
--- a/deps/npm/docs/output/commands/npm-config.html
+++ b/deps/npm/docs/output/commands/npm-config.html
@@ -186,9 +186,9 @@ npm command-line interface
<section id="content">
<header class="title">
-<h1 id="----npm-config----1222">
+<h1 id="----npm-config----1223">
<span>npm-config</span>
- <span class="version">@12.2.2</span>
+ <span class="version">@12.2.3</span>
</h1>
<span class="description">Manage the npm configuration files</span>
</header>
diff --git a/deps/npm/docs/output/commands/npm-dedupe.html b/deps/npm/docs/output/commands/npm-dedupe.html
index f7e29d2ba60..64ff03a22f8 100644
--- a/deps/npm/docs/output/commands/npm-dedupe.html
+++ b/deps/npm/docs/output/commands/npm-dedupe.html
@@ -186,9 +186,9 @@ npm command-line interface
<section id="content">
<header class="title">
-<h1 id="----npm-dedupe----1222">
+<h1 id="----npm-dedupe----1223">
<span>npm-dedupe</span>
- <span class="version">@12.2.2</span>
+ <span class="version">@12.2.3</span>
</h1>
<span class="description">Reduce duplication in the package tree</span>
</header>
diff --git a/deps/npm/docs/output/commands/npm-deny-scripts.html b/deps/npm/docs/output/commands/npm-deny-scripts.html
index deb3085d2e1..40856fa1c7a 100644
--- a/deps/npm/docs/output/commands/npm-deny-scripts.html
+++ b/deps/npm/docs/output/commands/npm-deny-scripts.html
@@ -186,9 +186,9 @@ npm command-line interface
<section id="content">
<header class="title">
-<h1 id="----npm-deny-scripts----1222">
+<h1 id="----npm-deny-scripts----1223">
<span>npm-deny-scripts</span>
- <span class="version">@12.2.2</span>
+ <span class="version">@12.2.3</span>
</h1>
<span class="description">Deny install scripts for specific dependencies</span>
</header>
diff --git a/deps/npm/docs/output/commands/npm-deprecate.html b/deps/npm/docs/output/commands/npm-deprecate.html
index abd3039a41c..73a217b2730 100644
--- a/deps/npm/docs/output/commands/npm-deprecate.html
+++ b/deps/npm/docs/output/commands/npm-deprecate.html
@@ -186,9 +186,9 @@ npm command-line interface
<section id="content">
<header class="title">
-<h1 id="----npm-deprecate----1222">
+<h1 id="----npm-deprecate----1223">
<span>npm-deprecate</span>
- <span class="version">@12.2.2</span>
+ <span class="version">@12.2.3</span>
</h1>
<span class="description">Deprecate a version of a package</span>
</header>
diff --git a/deps/npm/docs/output/commands/npm-diff.html b/deps/npm/docs/output/commands/npm-diff.html
index 801877eecd9..1f617c050ba 100644
--- a/deps/npm/docs/output/commands/npm-diff.html
+++ b/deps/npm/docs/output/commands/npm-diff.html
@@ -186,9 +186,9 @@ npm command-line interface
<section id="content">
<header class="title">
-<h1 id="----npm-diff----1222">
+<h1 id="----npm-diff----1223">
<span>npm-diff</span>
- <span class="version">@12.2.2</span>
+ <span class="version">@12.2.3</span>
</h1>
<span class="description">The registry diff command</span>
</header>
diff --git a/deps/npm/docs/output/commands/npm-dist-tag.html b/deps/npm/docs/output/commands/npm-dist-tag.html
index 066ade7afb7..c45107e237e 100644
--- a/deps/npm/docs/output/commands/npm-dist-tag.html
+++ b/deps/npm/docs/output/commands/npm-dist-tag.html
@@ -186,9 +186,9 @@ npm command-line interface
<section id="content">
<header class="title">
-<h1 id="----npm-dist-tag----1222">
+<h1 id="----npm-dist-tag----1223">
<span>npm-dist-tag</span>
- <span class="version">@12.2.2</span>
+ <span class="version">@12.2.3</span>
</h1>
<span class="description">Modify package distribution tags</span>
</header>
diff --git a/deps/npm/docs/output/commands/npm-docs.html b/deps/npm/docs/output/commands/npm-docs.html
index a799607fc29..46d0e731a59 100644
--- a/deps/npm/docs/output/commands/npm-docs.html
+++ b/deps/npm/docs/output/commands/npm-docs.html
@@ -186,9 +186,9 @@ npm command-line interface
<section id="content">
<header class="title">
-<h1 id="----npm-docs----1222">
+<h1 id="----npm-docs----1223">
<span>npm-docs</span>
- <span class="version">@12.2.2</span>
+ <span class="version">@12.2.3</span>
</h1>
<span class="description">Open documentation for a package in a web browser</span>
</header>
diff --git a/deps/npm/docs/output/commands/npm-doctor.html b/deps/npm/docs/output/commands/npm-doctor.html
index 6c8a259191c..e3aa4d8a022 100644
--- a/deps/npm/docs/output/commands/npm-doctor.html
+++ b/deps/npm/docs/output/commands/npm-doctor.html
@@ -186,9 +186,9 @@ npm command-line interface
<section id="content">
<header class="title">
-<h1 id="----npm-doctor----1222">
+<h1 id="----npm-doctor----1223">
<span>npm-doctor</span>
- <span class="version">@12.2.2</span>
+ <span class="version">@12.2.3</span>
</h1>
<span class="description">Check the health of your npm environment</span>
</header>
diff --git a/deps/npm/docs/output/commands/npm-edit.html b/deps/npm/docs/output/commands/npm-edit.html
index d1d51c0425f..fe7c2b05f44 100644
--- a/deps/npm/docs/output/commands/npm-edit.html
+++ b/deps/npm/docs/output/commands/npm-edit.html
@@ -186,9 +186,9 @@ npm command-line interface
<section id="content">
<header class="title">
-<h1 id="----npm-edit----1222">
+<h1 id="----npm-edit----1223">
<span>npm-edit</span>
- <span class="version">@12.2.2</span>
+ <span class="version">@12.2.3</span>
</h1>
<span class="description">Edit an installed package</span>
</header>
diff --git a/deps/npm/docs/output/commands/npm-exec.html b/deps/npm/docs/output/commands/npm-exec.html
index 6aed95ce18e..67d6d7700d0 100644
--- a/deps/npm/docs/output/commands/npm-exec.html
+++ b/deps/npm/docs/output/commands/npm-exec.html
@@ -186,9 +186,9 @@ npm command-line interface
<section id="content">
<header class="title">
-<h1 id="----npm-exec----1222">
+<h1 id="----npm-exec----1223">
<span>npm-exec</span>
- <span class="version">@12.2.2</span>
+ <span class="version">@12.2.3</span>
</h1>
<span class="description">Run a command from a local or remote npm package</span>
</header>
@@ -341,6 +341,10 @@ setting.</p>
<p>Optional dependencies that cannot be installed on the current platform or
engine (a non-matching <code>os</code>, <code>cpu</code>, or <code>libc</code>) are not flagged, because
their install scripts never run.</p>
+<p>Installation checks skip unused entries with no package parent or incoming
+links. Local link targets that installation can still rebuild remain subject
+to this check. <code>npm rebuild</code> and <code>npm install-scripts ls</code> still check unused
+packages on disk.</p>
<h4 id="dangerously-allow-all-scripts"><code>dangerously-allow-all-scripts</code></h4>
<ul>
<li>Default: false</li>
diff --git a/deps/npm/docs/output/commands/npm-explain.html b/deps/npm/docs/output/commands/npm-explain.html
index 602b4ecd715..70f25234b63 100644
--- a/deps/npm/docs/output/commands/npm-explain.html
+++ b/deps/npm/docs/output/commands/npm-explain.html
@@ -186,9 +186,9 @@ npm command-line interface
<section id="content">
<header class="title">
-<h1 id="----npm-explain----1222">
+<h1 id="----npm-explain----1223">
<span>npm-explain</span>
- <span class="version">@12.2.2</span>
+ <span class="version">@12.2.3</span>
</h1>
<span class="description">Explain installed packages</span>
</header>
diff --git a/deps/npm/docs/output/commands/npm-explore.html b/deps/npm/docs/output/commands/npm-explore.html
index e0aed4e1fa5..444fc436b27 100644
--- a/deps/npm/docs/output/commands/npm-explore.html
+++ b/deps/npm/docs/output/commands/npm-explore.html
@@ -186,9 +186,9 @@ npm command-line interface
<section id="content">
<header class="title">
-<h1 id="----npm-explore----1222">
+<h1 id="----npm-explore----1223">
<span>npm-explore</span>
- <span class="version">@12.2.2</span>
+ <span class="version">@12.2.3</span>
</h1>
<span class="description">Browse an installed package</span>
</header>
diff --git a/deps/npm/docs/output/commands/npm-find-dupes.html b/deps/npm/docs/output/commands/npm-find-dupes.html
index 1544c271508..5b9582bd8de 100644
--- a/deps/npm/docs/output/commands/npm-find-dupes.html
+++ b/deps/npm/docs/output/commands/npm-find-dupes.html
@@ -186,9 +186,9 @@ npm command-line interface
<section id="content">
<header class="title">
-<h1 id="----npm-find-dupes----1222">
+<h1 id="----npm-find-dupes----1223">
<span>npm-find-dupes</span>
- <span class="version">@12.2.2</span>
+ <span class="version">@12.2.3</span>
</h1>
<span class="description">Find duplication in the package tree</span>
</header>
diff --git a/deps/npm/docs/output/commands/npm-fund.html b/deps/npm/docs/output/commands/npm-fund.html
index 78b38fd33cb..9380eeff9d0 100644
--- a/deps/npm/docs/output/commands/npm-fund.html
+++ b/deps/npm/docs/output/commands/npm-fund.html
@@ -186,9 +186,9 @@ npm command-line interface
<section id="content">
<header class="title">
-<h1 id="----npm-fund----1222">
+<h1 id="----npm-fund----1223">
<span>npm-fund</span>
- <span class="version">@12.2.2</span>
+ <span class="version">@12.2.3</span>
</h1>
<span class="description">Retrieve funding information</span>
</header>
diff --git a/deps/npm/docs/output/commands/npm-get.html b/deps/npm/docs/output/commands/npm-get.html
index a56684a1b2c..726a51b9686 100644
--- a/deps/npm/docs/output/commands/npm-get.html
+++ b/deps/npm/docs/output/commands/npm-get.html
@@ -186,9 +186,9 @@ npm command-line interface
<section id="content">
<header class="title">
-<h1 id="----npm-get----1222">
+<h1 id="----npm-get----1223">
<span>npm-get</span>
- <span class="version">@12.2.2</span>
+ <span class="version">@12.2.3</span>
</h1>
<span class="description">Get a value from the npm configuration</span>
</header>
diff --git a/deps/npm/docs/output/commands/npm-help-search.html b/deps/npm/docs/output/commands/npm-help-search.html
index 7b8dc4930ad..73fb370269e 100644
--- a/deps/npm/docs/output/commands/npm-help-search.html
+++ b/deps/npm/docs/output/commands/npm-help-search.html
@@ -186,9 +186,9 @@ npm command-line interface
<section id="content">
<header class="title">
-<h1 id="----npm-help-search----1222">
+<h1 id="----npm-help-search----1223">
<span>npm-help-search</span>
- <span class="version">@12.2.2</span>
+ <span class="version">@12.2.3</span>
</h1>
<span class="description">Search npm help documentation</span>
</header>
diff --git a/deps/npm/docs/output/commands/npm-help.html b/deps/npm/docs/output/commands/npm-help.html
index 63a2f3a65ac..d9b14b25204 100644
--- a/deps/npm/docs/output/commands/npm-help.html
+++ b/deps/npm/docs/output/commands/npm-help.html
@@ -186,9 +186,9 @@ npm command-line interface
<section id="content">
<header class="title">
-<h1 id="----npm-help----1222">
+<h1 id="----npm-help----1223">
<span>npm-help</span>
- <span class="version">@12.2.2</span>
+ <span class="version">@12.2.3</span>
</h1>
<span class="description">Get help on npm</span>
</header>
diff --git a/deps/npm/docs/output/commands/npm-init.html b/deps/npm/docs/output/commands/npm-init.html
index 592eef7a233..ab031340785 100644
--- a/deps/npm/docs/output/commands/npm-init.html
+++ b/deps/npm/docs/output/commands/npm-init.html
@@ -186,9 +186,9 @@ npm command-line interface
<section id="content">
<header class="title">
-<h1 id="----npm-init----1222">
+<h1 id="----npm-init----1223">
<span>npm-init</span>
- <span class="version">@12.2.2</span>
+ <span class="version">@12.2.3</span>
</h1>
<span class="description">Create a package.json file</span>
</header>
diff --git a/deps/npm/docs/output/commands/npm-install-ci-test.html b/deps/npm/docs/output/commands/npm-install-ci-test.html
index 7cfe3a02120..b21f8198128 100644
--- a/deps/npm/docs/output/commands/npm-install-ci-test.html
+++ b/deps/npm/docs/output/commands/npm-install-ci-test.html
@@ -186,9 +186,9 @@ npm command-line interface
<section id="content">
<header class="title">
-<h1 id="----npm-install-ci-test----1222">
+<h1 id="----npm-install-ci-test----1223">
<span>npm-install-ci-test</span>
- <span class="version">@12.2.2</span>
+ <span class="version">@12.2.3</span>
</h1>
<span class="description">Install a project with a clean slate and run tests</span>
</header>
@@ -406,6 +406,10 @@ setting.</p>
<p>Optional dependencies that cannot be installed on the current platform or
engine (a non-matching <code>os</code>, <code>cpu</code>, or <code>libc</code>) are not flagged, because
their install scripts never run.</p>
+<p>Installation checks skip unused entries with no package parent or incoming
+links. Local link targets that installation can still rebuild remain subject
+to this check. <code>npm rebuild</code> and <code>npm install-scripts ls</code> still check unused
+packages on disk.</p>
<h4 id="dangerously-allow-all-scripts"><code>dangerously-allow-all-scripts</code></h4>
<ul>
<li>Default: false</li>
diff --git a/deps/npm/docs/output/commands/npm-install-scripts.html b/deps/npm/docs/output/commands/npm-install-scripts.html
index 03e65461f59..28936dc329b 100644
--- a/deps/npm/docs/output/commands/npm-install-scripts.html
+++ b/deps/npm/docs/output/commands/npm-install-scripts.html
@@ -186,9 +186,9 @@ npm command-line interface
<section id="content">
<header class="title">
-<h1 id="----npm-install-scripts----1222">
+<h1 id="----npm-install-scripts----1223">
<span>npm-install-scripts</span>
- <span class="version">@12.2.2</span>
+ <span class="version">@12.2.3</span>
</h1>
<span class="description">Manage install-script approvals for dependencies</span>
</header>
@@ -215,7 +215,10 @@ sources). This is the recommended way to maintain that field.</p>
<p>Dependency install scripts are blocked by default. Install commands
silently skip lifecycle scripts for any dependency that does not have a
matching entry in <code>allowScripts</code>, and end with a list of the packages
-whose scripts were skipped so you can review them here.</p>
+whose scripts were skipped so you can review them here.
+These warnings omit disconnected unused entries that installation cannot
+build. Local link targets that can still be rebuilt remain subject to the
+policy.</p>
<p>This command only works inside a project that has a <code>package.json</code>. Running
it with <code>--global</code> (<code>-g</code>) fails with an <code>EGLOBAL</code> error, since global
installs (<code>npm install -g</code>) and one-off executions (<code>npm exec</code> / <code>npx</code>) have
@@ -242,7 +245,10 @@ entry), which survives <code>npm install-scripts approve --all</code> and exclud
package from any future blanket approval. <code>--all</code> denies every package with
unreviewed install scripts.</p>
<p><code>ls</code> is read-only: it lists every package whose install scripts are not yet
-covered by <code>allowScripts</code>, without modifying <code>package.json</code>.</p>
+covered by <code>allowScripts</code>, without modifying <code>package.json</code>.
+This includes unreviewed extraneous packages, which are installed but not
+required by any dependency. These packages can still cause
+<code>npm rebuild --strict-allow-scripts</code> to fail.</p>
<p><code>prune</code> removes <code>allowScripts</code> entries that no longer match an installed
package with an install script, either because the package is no longer
installed (a transitive dependency changed, or a pinned <code>pkg@1.2.3</code> was
diff --git a/deps/npm/docs/output/commands/npm-install-test.html b/deps/npm/docs/output/commands/npm-install-test.html
index 81f401fb63e..0618f671e81 100644
--- a/deps/npm/docs/output/commands/npm-install-test.html
+++ b/deps/npm/docs/output/commands/npm-install-test.html
@@ -186,9 +186,9 @@ npm command-line interface
<section id="content">
<header class="title">
-<h1 id="----npm-install-test----1222">
+<h1 id="----npm-install-test----1223">
<span>npm-install-test</span>
- <span class="version">@12.2.2</span>
+ <span class="version">@12.2.3</span>
</h1>
<span class="description">Install package(s) and run tests</span>
</header>
@@ -462,6 +462,10 @@ setting.</p>
<p>Optional dependencies that cannot be installed on the current platform or
engine (a non-matching <code>os</code>, <code>cpu</code>, or <code>libc</code>) are not flagged, because
their install scripts never run.</p>
+<p>Installation checks skip unused entries with no package parent or incoming
+links. Local link targets that installation can still rebuild remain subject
+to this check. <code>npm rebuild</code> and <code>npm install-scripts ls</code> still check unused
+packages on disk.</p>
<h4 id="dangerously-allow-all-scripts"><code>dangerously-allow-all-scripts</code></h4>
<ul>
<li>Default: false</li>
diff --git a/deps/npm/docs/output/commands/npm-install.html b/deps/npm/docs/output/commands/npm-install.html
index f8debaf29c7..86e1ef481f9 100644
--- a/deps/npm/docs/output/commands/npm-install.html
+++ b/deps/npm/docs/output/commands/npm-install.html
@@ -186,9 +186,9 @@ npm command-line interface
<section id="content">
<header class="title">
-<h1 id="----npm-install----1222">
+<h1 id="----npm-install----1223">
<span>npm-install</span>
- <span class="version">@12.2.2</span>
+ <span class="version">@12.2.3</span>
</h1>
<span class="description">Install a package</span>
</header>
@@ -736,6 +736,10 @@ setting.</p>
<p>Optional dependencies that cannot be installed on the current platform or
engine (a non-matching <code>os</code>, <code>cpu</code>, or <code>libc</code>) are not flagged, because
their install scripts never run.</p>
+<p>Installation checks skip unused entries with no package parent or incoming
+links. Local link targets that installation can still rebuild remain subject
+to this check. <code>npm rebuild</code> and <code>npm install-scripts ls</code> still check unused
+packages on disk.</p>
<h4 id="dangerously-allow-all-scripts"><code>dangerously-allow-all-scripts</code></h4>
<ul>
<li>Default: false</li>
diff --git a/deps/npm/docs/output/commands/npm-link.html b/deps/npm/docs/output/commands/npm-link.html
index bd5868e09b5..350c6eddb76 100644
--- a/deps/npm/docs/output/commands/npm-link.html
+++ b/deps/npm/docs/output/commands/npm-link.html
@@ -186,9 +186,9 @@ npm command-line interface
<section id="content">
<header class="title">
-<h1 id="----npm-link----1222">
+<h1 id="----npm-link----1223">
<span>npm-link</span>
- <span class="version">@12.2.2</span>
+ <span class="version">@12.2.3</span>
</h1>
<span class="description">Symlink a package folder</span>
</header>
diff --git a/deps/npm/docs/output/commands/npm-ll.html b/deps/npm/docs/output/commands/npm-ll.html
index f52019a5dd1..7f1321fb6d7 100644
--- a/deps/npm/docs/output/commands/npm-ll.html
+++ b/deps/npm/docs/output/commands/npm-ll.html
@@ -186,9 +186,9 @@ npm command-line interface
<section id="content">
<header class="title">
-<h1 id="----npm-ll----1222">
+<h1 id="----npm-ll----1223">
<span>npm-ll</span>
- <span class="version">@12.2.2</span>
+ <span class="version">@12.2.3</span>
</h1>
<span class="description">List installed packages</span>
</header>
diff --git a/deps/npm/docs/output/commands/npm-login.html b/deps/npm/docs/output/commands/npm-login.html
index 11acf310b47..9a7157c0625 100644
--- a/deps/npm/docs/output/commands/npm-login.html
+++ b/deps/npm/docs/output/commands/npm-login.html
@@ -186,9 +186,9 @@ npm command-line interface
<section id="content">
<header class="title">
-<h1 id="----npm-login----1222">
+<h1 id="----npm-login----1223">
<span>npm-login</span>
- <span class="version">@12.2.2</span>
+ <span class="version">@12.2.3</span>
</h1>
<span class="description">Login to a registry user account</span>
</header>
diff --git a/deps/npm/docs/output/commands/npm-logout.html b/deps/npm/docs/output/commands/npm-logout.html
index 464313e2adb..b2af9df0946 100644
--- a/deps/npm/docs/output/commands/npm-logout.html
+++ b/deps/npm/docs/output/commands/npm-logout.html
@@ -186,9 +186,9 @@ npm command-line interface
<section id="content">
<header class="title">
-<h1 id="----npm-logout----1222">
+<h1 id="----npm-logout----1223">
<span>npm-logout</span>
- <span class="version">@12.2.2</span>
+ <span class="version">@12.2.3</span>
</h1>
<span class="description">Log out of the registry</span>
</header>
diff --git a/deps/npm/docs/output/commands/npm-ls.html b/deps/npm/docs/output/commands/npm-ls.html
index a8a8831640c..483b3fd8eb1 100644
--- a/deps/npm/docs/output/commands/npm-ls.html
+++ b/deps/npm/docs/output/commands/npm-ls.html
@@ -186,9 +186,9 @@ npm command-line interface
<section id="content">
<header class="title">
-<h1 id="----npm-ls----1222">
+<h1 id="----npm-ls----1223">
<span>npm-ls</span>
- <span class="version">@12.2.2</span>
+ <span class="version">@12.2.3</span>
</h1>
<span class="description">List installed packages</span>
</header>
@@ -209,7 +209,7 @@ alias: list
<p>Positional arguments are <code>name@version-range</code> identifiers, which will limit the results to only the paths to the packages named.
Note that nested packages will <em>also</em> show the paths to the specified packages.
For example, running <code>npm ls promzard</code> in npm's source tree will show:</p>
-<pre><code class="language-bash">npm@12.2.2 /path/to/npm
+<pre><code class="language-bash">npm@12.2.3 /path/to/npm
└─┬ init-package-json@0.0.4
└── promzard@0.1.5
</code></pre>
diff --git a/deps/npm/docs/output/commands/npm-org.html b/deps/npm/docs/output/commands/npm-org.html
index 99cb4339b16..338253f5711 100644
--- a/deps/npm/docs/output/commands/npm-org.html
+++ b/deps/npm/docs/output/commands/npm-org.html
@@ -186,9 +186,9 @@ npm command-line interface
<section id="content">
<header class="title">
-<h1 id="----npm-org----1222">
+<h1 id="----npm-org----1223">
<span>npm-org</span>
- <span class="version">@12.2.2</span>
+ <span class="version">@12.2.3</span>
</h1>
<span class="description">Manage orgs</span>
</header>
diff --git a/deps/npm/docs/output/commands/npm-outdated.html b/deps/npm/docs/output/commands/npm-outdated.html
index 613b24e8bd6..acbd60ea201 100644
--- a/deps/npm/docs/output/commands/npm-outdated.html
+++ b/deps/npm/docs/output/commands/npm-outdated.html
@@ -186,9 +186,9 @@ npm command-line interface
<section id="content">
<header class="title">
-<h1 id="----npm-outdated----1222">
+<h1 id="----npm-outdated----1223">
<span>npm-outdated</span>
- <span class="version">@12.2.2</span>
+ <span class="version">@12.2.3</span>
</h1>
<span class="description">Check for outdated packages</span>
</header>
diff --git a/deps/npm/docs/output/commands/npm-owner.html b/deps/npm/docs/output/commands/npm-owner.html
index 9af22b69a86..e4afeb4a153 100644
--- a/deps/npm/docs/output/commands/npm-owner.html
+++ b/deps/npm/docs/output/commands/npm-owner.html
@@ -186,9 +186,9 @@ npm command-line interface
<section id="content">
<header class="title">
-<h1 id="----npm-owner----1222">
+<h1 id="----npm-owner----1223">
<span>npm-owner</span>
- <span class="version">@12.2.2</span>
+ <span class="version">@12.2.3</span>
</h1>
<span class="description">Manage package owners</span>
</header>
diff --git a/deps/npm/docs/output/commands/npm-pack.html b/deps/npm/docs/output/commands/npm-pack.html
index c970b43b5bb..fb1d5f3bc76 100644
--- a/deps/npm/docs/output/commands/npm-pack.html
+++ b/deps/npm/docs/output/commands/npm-pack.html
@@ -186,9 +186,9 @@ npm command-line interface
<section id="content">
<header class="title">
-<h1 id="----npm-pack----1222">
+<h1 id="----npm-pack----1223">
<span>npm-pack</span>
- <span class="version">@12.2.2</span>
+ <span class="version">@12.2.3</span>
</h1>
<span class="description">Create a tarball from a package</span>
</header>
diff --git a/deps/npm/docs/output/commands/npm-patch.html b/deps/npm/docs/output/commands/npm-patch.html
index 95f8ca03ed3..7fd6f8d0667 100644
--- a/deps/npm/docs/output/commands/npm-patch.html
+++ b/deps/npm/docs/output/commands/npm-patch.html
@@ -186,9 +186,9 @@ npm command-line interface
<section id="content">
<header class="title">
-<h1 id="----npm-patch----1222">
+<h1 id="----npm-patch----1223">
<span>npm-patch</span>
- <span class="version">@12.2.2</span>
+ <span class="version">@12.2.3</span>
</h1>
<span class="description">Apply local patches to installed dependencies</span>
</header>
diff --git a/deps/npm/docs/output/commands/npm-ping.html b/deps/npm/docs/output/commands/npm-ping.html
index 2eb84b18721..505bcd8cdce 100644
--- a/deps/npm/docs/output/commands/npm-ping.html
+++ b/deps/npm/docs/output/commands/npm-ping.html
@@ -186,9 +186,9 @@ npm command-line interface
<section id="content">
<header class="title">
-<h1 id="----npm-ping----1222">
+<h1 id="----npm-ping----1223">
<span>npm-ping</span>
- <span class="version">@12.2.2</span>
+ <span class="version">@12.2.3</span>
</h1>
<span class="description">Ping npm registry</span>
</header>
diff --git a/deps/npm/docs/output/commands/npm-pkg.html b/deps/npm/docs/output/commands/npm-pkg.html
index 4e0e78e8a0d..5b0dfe5c150 100644
--- a/deps/npm/docs/output/commands/npm-pkg.html
+++ b/deps/npm/docs/output/commands/npm-pkg.html
@@ -186,9 +186,9 @@ npm command-line interface
<section id="content">
<header class="title">
-<h1 id="----npm-pkg----1222">
+<h1 id="----npm-pkg----1223">
<span>npm-pkg</span>
- <span class="version">@12.2.2</span>
+ <span class="version">@12.2.3</span>
</h1>
<span class="description">Manages your package.json</span>
</header>
diff --git a/deps/npm/docs/output/commands/npm-prefix.html b/deps/npm/docs/output/commands/npm-prefix.html
index 4754a80148c..ed8434fc7c6 100644
--- a/deps/npm/docs/output/commands/npm-prefix.html
+++ b/deps/npm/docs/output/commands/npm-prefix.html
@@ -186,9 +186,9 @@ npm command-line interface
<section id="content">
<header class="title">
-<h1 id="----npm-prefix----1222">
+<h1 id="----npm-prefix----1223">
<span>npm-prefix</span>
- <span class="version">@12.2.2</span>
+ <span class="version">@12.2.3</span>
</h1>
<span class="description">Display prefix</span>
</header>
diff --git a/deps/npm/docs/output/commands/npm-profile.html b/deps/npm/docs/output/commands/npm-profile.html
index a04049fa44b..803a00f2cec 100644
--- a/deps/npm/docs/output/commands/npm-profile.html
+++ b/deps/npm/docs/output/commands/npm-profile.html
@@ -186,9 +186,9 @@ npm command-line interface
<section id="content">
<header class="title">
-<h1 id="----npm-profile----1222">
+<h1 id="----npm-profile----1223">
<span>npm-profile</span>
- <span class="version">@12.2.2</span>
+ <span class="version">@12.2.3</span>
</h1>
<span class="description">Change settings on your registry profile</span>
</header>
diff --git a/deps/npm/docs/output/commands/npm-prune.html b/deps/npm/docs/output/commands/npm-prune.html
index 8a5965e94fe..d1c86a59a6a 100644
--- a/deps/npm/docs/output/commands/npm-prune.html
+++ b/deps/npm/docs/output/commands/npm-prune.html
@@ -186,9 +186,9 @@ npm command-line interface
<section id="content">
<header class="title">
-<h1 id="----npm-prune----1222">
+<h1 id="----npm-prune----1223">
<span>npm-prune</span>
- <span class="version">@12.2.2</span>
+ <span class="version">@12.2.3</span>
</h1>
<span class="description">Remove extraneous packages</span>
</header>
diff --git a/deps/npm/docs/output/commands/npm-publish.html b/deps/npm/docs/output/commands/npm-publish.html
index 850f8ea16f8..d67876a8139 100644
--- a/deps/npm/docs/output/commands/npm-publish.html
+++ b/deps/npm/docs/output/commands/npm-publish.html
@@ -186,9 +186,9 @@ npm command-line interface
<section id="content">
<header class="title">
-<h1 id="----npm-publish----1222">
+<h1 id="----npm-publish----1223">
<span>npm-publish</span>
- <span class="version">@12.2.2</span>
+ <span class="version">@12.2.3</span>
</h1>
<span class="description">Publish a package</span>
</header>
diff --git a/deps/npm/docs/output/commands/npm-query.html b/deps/npm/docs/output/commands/npm-query.html
index fc702828c7d..00318a3fc04 100644
--- a/deps/npm/docs/output/commands/npm-query.html
+++ b/deps/npm/docs/output/commands/npm-query.html
@@ -186,9 +186,9 @@ npm command-line interface
<section id="content">
<header class="title">
-<h1 id="----npm-query----1222">
+<h1 id="----npm-query----1223">
<span>npm-query</span>
- <span class="version">@12.2.2</span>
+ <span class="version">@12.2.3</span>
</h1>
<span class="description">Dependency selector query</span>
</header>
diff --git a/deps/npm/docs/output/commands/npm-rebuild.html b/deps/npm/docs/output/commands/npm-rebuild.html
index a37087eee82..6356652a029 100644
--- a/deps/npm/docs/output/commands/npm-rebuild.html
+++ b/deps/npm/docs/output/commands/npm-rebuild.html
@@ -186,9 +186,9 @@ npm command-line interface
<section id="content">
<header class="title">
-<h1 id="----npm-rebuild----1222">
+<h1 id="----npm-rebuild----1223">
<span>npm-rebuild</span>
- <span class="version">@12.2.2</span>
+ <span class="version">@12.2.3</span>
</h1>
<span class="description">Rebuild a package</span>
</header>
@@ -305,6 +305,10 @@ setting.</p>
<p>Optional dependencies that cannot be installed on the current platform or
engine (a non-matching <code>os</code>, <code>cpu</code>, or <code>libc</code>) are not flagged, because
their install scripts never run.</p>
+<p>Installation checks skip unused entries with no package parent or incoming
+links. Local link targets that installation can still rebuild remain subject
+to this check. <code>npm rebuild</code> and <code>npm install-scripts ls</code> still check unused
+packages on disk.</p>
<h4 id="dangerously-allow-all-scripts"><code>dangerously-allow-all-scripts</code></h4>
<ul>
<li>Default: false</li>
diff --git a/deps/npm/docs/output/commands/npm-repo.html b/deps/npm/docs/output/commands/npm-repo.html
index 02f51b1f96a..546c2177fe8 100644
--- a/deps/npm/docs/output/commands/npm-repo.html
+++ b/deps/npm/docs/output/commands/npm-repo.html
@@ -186,9 +186,9 @@ npm command-line interface
<section id="content">
<header class="title">
-<h1 id="----npm-repo----1222">
+<h1 id="----npm-repo----1223">
<span>npm-repo</span>
- <span class="version">@12.2.2</span>
+ <span class="version">@12.2.3</span>
</h1>
<span class="description">Open package repository page in the browser</span>
</header>
diff --git a/deps/npm/docs/output/commands/npm-restart.html b/deps/npm/docs/output/commands/npm-restart.html
index 62d66243bb6..12e975bc5fe 100644
--- a/deps/npm/docs/output/commands/npm-restart.html
+++ b/deps/npm/docs/output/commands/npm-restart.html
@@ -186,9 +186,9 @@ npm command-line interface
<section id="content">
<header class="title">
-<h1 id="----npm-restart----1222">
+<h1 id="----npm-restart----1223">
<span>npm-restart</span>
- <span class="version">@12.2.2</span>
+ <span class="version">@12.2.3</span>
</h1>
<span class="description">Restart a package</span>
</header>
diff --git a/deps/npm/docs/output/commands/npm-root.html b/deps/npm/docs/output/commands/npm-root.html
index 791f77c7a1d..dc0871e017c 100644
--- a/deps/npm/docs/output/commands/npm-root.html
+++ b/deps/npm/docs/output/commands/npm-root.html
@@ -186,9 +186,9 @@ npm command-line interface
<section id="content">
<header class="title">
-<h1 id="----npm-root----1222">
+<h1 id="----npm-root----1223">
<span>npm-root</span>
- <span class="version">@12.2.2</span>
+ <span class="version">@12.2.3</span>
</h1>
<span class="description">Display npm root</span>
</header>
diff --git a/deps/npm/docs/output/commands/npm-run.html b/deps/npm/docs/output/commands/npm-run.html
index 4a893229f5f..f82a68c59da 100644
--- a/deps/npm/docs/output/commands/npm-run.html
+++ b/deps/npm/docs/output/commands/npm-run.html
@@ -186,9 +186,9 @@ npm command-line interface
<section id="content">
<header class="title">
-<h1 id="----npm-run----1222">
+<h1 id="----npm-run----1223">
<span>npm-run</span>
- <span class="version">@12.2.2</span>
+ <span class="version">@12.2.3</span>
</h1>
<span class="description">Run arbitrary package scripts</span>
</header>
diff --git a/deps/npm/docs/output/commands/npm-sbom.html b/deps/npm/docs/output/commands/npm-sbom.html
index 4b740785316..bd8df643798 100644
--- a/deps/npm/docs/output/commands/npm-sbom.html
+++ b/deps/npm/docs/output/commands/npm-sbom.html
@@ -186,9 +186,9 @@ npm command-line interface
<section id="content">
<header class="title">
-<h1 id="----npm-sbom----1222">
+<h1 id="----npm-sbom----1223">
<span>npm-sbom</span>
- <span class="version">@12.2.2</span>
+ <span class="version">@12.2.3</span>
</h1>
<span class="description">Generate a Software Bill of Materials (SBOM)</span>
</header>
diff --git a/deps/npm/docs/output/commands/npm-search.html b/deps/npm/docs/output/commands/npm-search.html
index e812a0e6287..909fc5b7ac4 100644
--- a/deps/npm/docs/output/commands/npm-search.html
+++ b/deps/npm/docs/output/commands/npm-search.html
@@ -186,9 +186,9 @@ npm command-line interface
<section id="content">
<header class="title">
-<h1 id="----npm-search----1222">
+<h1 id="----npm-search----1223">
<span>npm-search</span>
- <span class="version">@12.2.2</span>
+ <span class="version">@12.2.3</span>
</h1>
<span class="description">Search for packages</span>
</header>
diff --git a/deps/npm/docs/output/commands/npm-set.html b/deps/npm/docs/output/commands/npm-set.html
index d980e7d7bd1..f905da0f2e9 100644
--- a/deps/npm/docs/output/commands/npm-set.html
+++ b/deps/npm/docs/output/commands/npm-set.html
@@ -186,9 +186,9 @@ npm command-line interface
<section id="content">
<header class="title">
-<h1 id="----npm-set----1222">
+<h1 id="----npm-set----1223">
<span>npm-set</span>
- <span class="version">@12.2.2</span>
+ <span class="version">@12.2.3</span>
</h1>
<span class="description">Set a value in the npm configuration</span>
</header>
diff --git a/deps/npm/docs/output/commands/npm-stage.html b/deps/npm/docs/output/commands/npm-stage.html
index af9b075b529..626706f938a 100644
--- a/deps/npm/docs/output/commands/npm-stage.html
+++ b/deps/npm/docs/output/commands/npm-stage.html
@@ -186,9 +186,9 @@ npm command-line interface
<section id="content">
<header class="title">
-<h1 id="----npm-stage----1222">
+<h1 id="----npm-stage----1223">
<span>npm-stage</span>
- <span class="version">@12.2.2</span>
+ <span class="version">@12.2.3</span>
</h1>
<span class="description">Stage packages for publishing</span>
</header>
diff --git a/deps/npm/docs/output/commands/npm-start.html b/deps/npm/docs/output/commands/npm-start.html
index 77de290c499..53c34d28a1b 100644
--- a/deps/npm/docs/output/commands/npm-start.html
+++ b/deps/npm/docs/output/commands/npm-start.html
@@ -186,9 +186,9 @@ npm command-line interface
<section id="content">
<header class="title">
-<h1 id="----npm-start----1222">
+<h1 id="----npm-start----1223">
<span>npm-start</span>
- <span class="version">@12.2.2</span>
+ <span class="version">@12.2.3</span>
</h1>
<span class="description">Start a package</span>
</header>
diff --git a/deps/npm/docs/output/commands/npm-stop.html b/deps/npm/docs/output/commands/npm-stop.html
index 3054cf5502c..bacf3f6253c 100644
--- a/deps/npm/docs/output/commands/npm-stop.html
+++ b/deps/npm/docs/output/commands/npm-stop.html
@@ -186,9 +186,9 @@ npm command-line interface
<section id="content">
<header class="title">
-<h1 id="----npm-stop----1222">
+<h1 id="----npm-stop----1223">
<span>npm-stop</span>
- <span class="version">@12.2.2</span>
+ <span class="version">@12.2.3</span>
</h1>
<span class="description">Stop a package</span>
</header>
diff --git a/deps/npm/docs/output/commands/npm-team.html b/deps/npm/docs/output/commands/npm-team.html
index 8b2f9e77434..92dd6c677ca 100644
--- a/deps/npm/docs/output/commands/npm-team.html
+++ b/deps/npm/docs/output/commands/npm-team.html
@@ -186,9 +186,9 @@ npm command-line interface
<section id="content">
<header class="title">
-<h1 id="----npm-team----1222">
+<h1 id="----npm-team----1223">
<span>npm-team</span>
- <span class="version">@12.2.2</span>
+ <span class="version">@12.2.3</span>
</h1>
<span class="description">Manage organization teams and team memberships</span>
</header>
diff --git a/deps/npm/docs/output/commands/npm-test.html b/deps/npm/docs/output/commands/npm-test.html
index 88b28fc373c..becc549d00b 100644
--- a/deps/npm/docs/output/commands/npm-test.html
+++ b/deps/npm/docs/output/commands/npm-test.html
@@ -186,9 +186,9 @@ npm command-line interface
<section id="content">
<header class="title">
-<h1 id="----npm-test----1222">
+<h1 id="----npm-test----1223">
<span>npm-test</span>
- <span class="version">@12.2.2</span>
+ <span class="version">@12.2.3</span>
</h1>
<span class="description">Test a package</span>
</header>
diff --git a/deps/npm/docs/output/commands/npm-token.html b/deps/npm/docs/output/commands/npm-token.html
index 7b939a21559..59993536dfa 100644
--- a/deps/npm/docs/output/commands/npm-token.html
+++ b/deps/npm/docs/output/commands/npm-token.html
@@ -186,9 +186,9 @@ npm command-line interface
<section id="content">
<header class="title">
-<h1 id="----npm-token----1222">
+<h1 id="----npm-token----1223">
<span>npm-token</span>
- <span class="version">@12.2.2</span>
+ <span class="version">@12.2.3</span>
</h1>
<span class="description">Manage your authentication tokens</span>
</header>
diff --git a/deps/npm/docs/output/commands/npm-trust.html b/deps/npm/docs/output/commands/npm-trust.html
index 707ed794b10..c859f06d6c5 100644
--- a/deps/npm/docs/output/commands/npm-trust.html
+++ b/deps/npm/docs/output/commands/npm-trust.html
@@ -186,9 +186,9 @@ npm command-line interface
<section id="content">
<header class="title">
-<h1 id="----npm-trust----1222">
+<h1 id="----npm-trust----1223">
<span>npm-trust</span>
- <span class="version">@12.2.2</span>
+ <span class="version">@12.2.3</span>
</h1>
<span class="description">Manage trusted publishing relationships between packages and CI/CD providers</span>
</header>
diff --git a/deps/npm/docs/output/commands/npm-undeprecate.html b/deps/npm/docs/output/commands/npm-undeprecate.html
index 1b35b155ec1..e6b97323eb4 100644
--- a/deps/npm/docs/output/commands/npm-undeprecate.html
+++ b/deps/npm/docs/output/commands/npm-undeprecate.html
@@ -186,9 +186,9 @@ npm command-line interface
<section id="content">
<header class="title">
-<h1 id="----npm-undeprecate----1222">
+<h1 id="----npm-undeprecate----1223">
<span>npm-undeprecate</span>
- <span class="version">@12.2.2</span>
+ <span class="version">@12.2.3</span>
</h1>
<span class="description">Undeprecate a version of a package</span>
</header>
diff --git a/deps/npm/docs/output/commands/npm-uninstall.html b/deps/npm/docs/output/commands/npm-uninstall.html
index dcb9c30a4d7..89083df0db8 100644
--- a/deps/npm/docs/output/commands/npm-uninstall.html
+++ b/deps/npm/docs/output/commands/npm-uninstall.html
@@ -186,9 +186,9 @@ npm command-line interface
<section id="content">
<header class="title">
-<h1 id="----npm-uninstall----1222">
+<h1 id="----npm-uninstall----1223">
<span>npm-uninstall</span>
- <span class="version">@12.2.2</span>
+ <span class="version">@12.2.3</span>
</h1>
<span class="description">Remove a package</span>
</header>
diff --git a/deps/npm/docs/output/commands/npm-unpublish.html b/deps/npm/docs/output/commands/npm-unpublish.html
index 52fc59ffb7a..46cc2487ea6 100644
--- a/deps/npm/docs/output/commands/npm-unpublish.html
+++ b/deps/npm/docs/output/commands/npm-unpublish.html
@@ -186,9 +186,9 @@ npm command-line interface
<section id="content">
<header class="title">
-<h1 id="----npm-unpublish----1222">
+<h1 id="----npm-unpublish----1223">
<span>npm-unpublish</span>
- <span class="version">@12.2.2</span>
+ <span class="version">@12.2.3</span>
</h1>
<span class="description">Remove a package from the registry</span>
</header>
diff --git a/deps/npm/docs/output/commands/npm-update.html b/deps/npm/docs/output/commands/npm-update.html
index 43c33121620..469e8820b9e 100644
--- a/deps/npm/docs/output/commands/npm-update.html
+++ b/deps/npm/docs/output/commands/npm-update.html
@@ -186,9 +186,9 @@ npm command-line interface
<section id="content">
<header class="title">
-<h1 id="----npm-update----1222">
+<h1 id="----npm-update----1223">
<span>npm-update</span>
- <span class="version">@12.2.2</span>
+ <span class="version">@12.2.3</span>
</h1>
<span class="description">Update packages</span>
</header>
@@ -448,6 +448,10 @@ setting.</p>
<p>Optional dependencies that cannot be installed on the current platform or
engine (a non-matching <code>os</code>, <code>cpu</code>, or <code>libc</code>) are not flagged, because
their install scripts never run.</p>
+<p>Installation checks skip unused entries with no package parent or incoming
+links. Local link targets that installation can still rebuild remain subject
+to this check. <code>npm rebuild</code> and <code>npm install-scripts ls</code> still check unused
+packages on disk.</p>
<h4 id="dangerously-allow-all-scripts"><code>dangerously-allow-all-scripts</code></h4>
<ul>
<li>Default: false</li>
diff --git a/deps/npm/docs/output/commands/npm-version.html b/deps/npm/docs/output/commands/npm-version.html
index 6062c22b56e..93cb28ab136 100644
--- a/deps/npm/docs/output/commands/npm-version.html
+++ b/deps/npm/docs/output/commands/npm-version.html
@@ -186,9 +186,9 @@ npm command-line interface
<section id="content">
<header class="title">
-<h1 id="----npm-version----1222">
+<h1 id="----npm-version----1223">
<span>npm-version</span>
- <span class="version">@12.2.2</span>
+ <span class="version">@12.2.3</span>
</h1>
<span class="description">Bump a package version</span>
</header>
diff --git a/deps/npm/docs/output/commands/npm-view.html b/deps/npm/docs/output/commands/npm-view.html
index 1d80c87ab45..77328a4e9d0 100644
--- a/deps/npm/docs/output/commands/npm-view.html
+++ b/deps/npm/docs/output/commands/npm-view.html
@@ -186,9 +186,9 @@ npm command-line interface
<section id="content">
<header class="title">
-<h1 id="----npm-view----1222">
+<h1 id="----npm-view----1223">
<span>npm-view</span>
- <span class="version">@12.2.2</span>
+ <span class="version">@12.2.3</span>
</h1>
<span class="description">View registry info</span>
</header>
diff --git a/deps/npm/docs/output/commands/npm-whoami.html b/deps/npm/docs/output/commands/npm-whoami.html
index 03727c5291d..73e89e7b96a 100644
--- a/deps/npm/docs/output/commands/npm-whoami.html
+++ b/deps/npm/docs/output/commands/npm-whoami.html
@@ -186,9 +186,9 @@ npm command-line interface
<section id="content">
<header class="title">
-<h1 id="----npm-whoami----1222">
+<h1 id="----npm-whoami----1223">
<span>npm-whoami</span>
- <span class="version">@12.2.2</span>
+ <span class="version">@12.2.3</span>
</h1>
<span class="description">Display npm username</span>
</header>
diff --git a/deps/npm/docs/output/commands/npm.html b/deps/npm/docs/output/commands/npm.html
index 798e831ae48..fa2a5b2b599 100644
--- a/deps/npm/docs/output/commands/npm.html
+++ b/deps/npm/docs/output/commands/npm.html
@@ -186,9 +186,9 @@ npm command-line interface
<section id="content">
<header class="title">
-<h1 id="----npm----1222">
+<h1 id="----npm----1223">
<span>npm</span>
- <span class="version">@12.2.2</span>
+ <span class="version">@12.2.3</span>
</h1>
<span class="description">javascript package manager</span>
</header>
@@ -203,7 +203,7 @@ npm command-line interface
</code></pre>
<p>Note: This command is unaware of workspaces.</p>
<h3 id="version">Version</h3>
-<p>12.2.2</p>
+<p>12.2.3</p>
<h3 id="description">Description</h3>
<p>npm is the package manager for the Node JavaScript platform.
It puts modules in place so that node can find them, and manages dependency conflicts intelligently.</p>
diff --git a/deps/npm/docs/output/commands/npx.html b/deps/npm/docs/output/commands/npx.html
index d72a03612b8..e13f289c4ae 100644
--- a/deps/npm/docs/output/commands/npx.html
+++ b/deps/npm/docs/output/commands/npx.html
@@ -186,9 +186,9 @@ npm command-line interface
<section id="content">
<header class="title">
-<h1 id="----npx----1222">
+<h1 id="----npx----1223">
<span>npx</span>
- <span class="version">@12.2.2</span>
+ <span class="version">@12.2.3</span>
</h1>
<span class="description">Run a command from a local or remote npm package</span>
</header>
diff --git a/deps/npm/docs/output/configuring-npm/folders.html b/deps/npm/docs/output/configuring-npm/folders.html
index 32236027996..12f64f3dd84 100644
--- a/deps/npm/docs/output/configuring-npm/folders.html
+++ b/deps/npm/docs/output/configuring-npm/folders.html
@@ -186,9 +186,9 @@ npm command-line interface
<section id="content">
<header class="title">
-<h1 id="----folders----1222">
+<h1 id="----folders----1223">
<span>Folders</span>
- <span class="version">@12.2.2</span>
+ <span class="version">@12.2.3</span>
</h1>
<span class="description">Folder structures used by npm</span>
</header>
diff --git a/deps/npm/docs/output/configuring-npm/install.html b/deps/npm/docs/output/configuring-npm/install.html
index fda1dbc96d4..8e38c1837a3 100644
--- a/deps/npm/docs/output/configuring-npm/install.html
+++ b/deps/npm/docs/output/configuring-npm/install.html
@@ -186,9 +186,9 @@ npm command-line interface
<section id="content">
<header class="title">
-<h1 id="----install----1222">
+<h1 id="----install----1223">
<span>Install</span>
- <span class="version">@12.2.2</span>
+ <span class="version">@12.2.3</span>
</h1>
<span class="description">Download and install node and npm</span>
</header>
diff --git a/deps/npm/docs/output/configuring-npm/npm-extension.html b/deps/npm/docs/output/configuring-npm/npm-extension.html
index 7de5b85b562..c1669ac1ae9 100644
--- a/deps/npm/docs/output/configuring-npm/npm-extension.html
+++ b/deps/npm/docs/output/configuring-npm/npm-extension.html
@@ -186,9 +186,9 @@ npm command-line interface
<section id="content">
<header class="title">
-<h1 id="----npm-extension----1222">
+<h1 id="----npm-extension----1223">
<span>.npm-extension</span>
- <span class="version">@12.2.2</span>
+ <span class="version">@12.2.3</span>
</h1>
<span class="description">Imperative, root-owned manifest repairs</span>
</header>
diff --git a/deps/npm/docs/output/configuring-npm/npm-global.html b/deps/npm/docs/output/configuring-npm/npm-global.html
index 32236027996..12f64f3dd84 100644
--- a/deps/npm/docs/output/configuring-npm/npm-global.html
+++ b/deps/npm/docs/output/configuring-npm/npm-global.html
@@ -186,9 +186,9 @@ npm command-line interface
<section id="content">
<header class="title">
-<h1 id="----folders----1222">
+<h1 id="----folders----1223">
<span>Folders</span>
- <span class="version">@12.2.2</span>
+ <span class="version">@12.2.3</span>
</h1>
<span class="description">Folder structures used by npm</span>
</header>
diff --git a/deps/npm/docs/output/configuring-npm/npm-json.html b/deps/npm/docs/output/configuring-npm/npm-json.html
index bd54796a986..1d00841fab7 100644
--- a/deps/npm/docs/output/configuring-npm/npm-json.html
+++ b/deps/npm/docs/output/configuring-npm/npm-json.html
@@ -186,9 +186,9 @@ npm command-line interface
<section id="content">
<header class="title">
-<h1 id="----packagejson----1222">
+<h1 id="----packagejson----1223">
<span>package.json</span>
- <span class="version">@12.2.2</span>
+ <span class="version">@12.2.3</span>
</h1>
<span class="description">Specifics of npm's package.json handling</span>
</header>
diff --git a/deps/npm/docs/output/configuring-npm/npmrc.html b/deps/npm/docs/output/configuring-npm/npmrc.html
index 7a8494a8e2b..7779ca39c9e 100644
--- a/deps/npm/docs/output/configuring-npm/npmrc.html
+++ b/deps/npm/docs/output/configuring-npm/npmrc.html
@@ -186,9 +186,9 @@ npm command-line interface
<section id="content">
<header class="title">
-<h1 id="----npmrc----1222">
+<h1 id="----npmrc----1223">
<span>.npmrc</span>
- <span class="version">@12.2.2</span>
+ <span class="version">@12.2.3</span>
</h1>
<span class="description">The npm config files</span>
</header>
diff --git a/deps/npm/docs/output/configuring-npm/package-json.html b/deps/npm/docs/output/configuring-npm/package-json.html
index bd54796a986..1d00841fab7 100644
--- a/deps/npm/docs/output/configuring-npm/package-json.html
+++ b/deps/npm/docs/output/configuring-npm/package-json.html
@@ -186,9 +186,9 @@ npm command-line interface
<section id="content">
<header class="title">
-<h1 id="----packagejson----1222">
+<h1 id="----packagejson----1223">
<span>package.json</span>
- <span class="version">@12.2.2</span>
+ <span class="version">@12.2.3</span>
</h1>
<span class="description">Specifics of npm's package.json handling</span>
</header>
diff --git a/deps/npm/docs/output/configuring-npm/package-lock-json.html b/deps/npm/docs/output/configuring-npm/package-lock-json.html
index d5464d7c276..f5800c82280 100644
--- a/deps/npm/docs/output/configuring-npm/package-lock-json.html
+++ b/deps/npm/docs/output/configuring-npm/package-lock-json.html
@@ -186,9 +186,9 @@ npm command-line interface
<section id="content">
<header class="title">
-<h1 id="----package-lockjson----1222">
+<h1 id="----package-lockjson----1223">
<span>package-lock.json</span>
- <span class="version">@12.2.2</span>
+ <span class="version">@12.2.3</span>
</h1>
<span class="description">A manifestation of the manifest</span>
</header>
diff --git a/deps/npm/docs/output/using-npm/config.html b/deps/npm/docs/output/using-npm/config.html
index df5cf69f13b..a0e93408456 100644
--- a/deps/npm/docs/output/using-npm/config.html
+++ b/deps/npm/docs/output/using-npm/config.html
@@ -186,9 +186,9 @@ npm command-line interface
<section id="content">
<header class="title">
-<h1 id="----config----1222">
+<h1 id="----config----1223">
<span>Config</span>
- <span class="version">@12.2.2</span>
+ <span class="version">@12.2.3</span>
</h1>
<span class="description">About npm configuration</span>
</header>
@@ -1674,6 +1674,10 @@ setting.</p>
<p>Optional dependencies that cannot be installed on the current platform or
engine (a non-matching <code>os</code>, <code>cpu</code>, or <code>libc</code>) are not flagged, because
their install scripts never run.</p>
+<p>Installation checks skip unused entries with no package parent or incoming
+links. Local link targets that installation can still rebuild remain subject
+to this check. <code>npm rebuild</code> and <code>npm install-scripts ls</code> still check unused
+packages on disk.</p>
<h4 id="strict-npmrc"><code>strict-npmrc</code></h4>
<ul>
<li>Default: false</li>
diff --git a/deps/npm/docs/output/using-npm/dependency-selectors.html b/deps/npm/docs/output/using-npm/dependency-selectors.html
index 7dc55a54dae..a22be2193a8 100644
--- a/deps/npm/docs/output/using-npm/dependency-selectors.html
+++ b/deps/npm/docs/output/using-npm/dependency-selectors.html
@@ -186,9 +186,9 @@ npm command-line interface
<section id="content">
<header class="title">
-<h1 id="----dependency-selectors----1222">
+<h1 id="----dependency-selectors----1223">
<span>Dependency Selectors</span>
- <span class="version">@12.2.2</span>
+ <span class="version">@12.2.3</span>
</h1>
<span class="description">Dependency Selector Syntax & Querying</span>
</header>
diff --git a/deps/npm/docs/output/using-npm/developers.html b/deps/npm/docs/output/using-npm/developers.html
index c89c0dcbf93..87bcdfc6b9e 100644
--- a/deps/npm/docs/output/using-npm/developers.html
+++ b/deps/npm/docs/output/using-npm/developers.html
@@ -186,9 +186,9 @@ npm command-line interface
<section id="content">
<header class="title">
-<h1 id="----developers----1222">
+<h1 id="----developers----1223">
<span>Developers</span>
- <span class="version">@12.2.2</span>
+ <span class="version">@12.2.3</span>
</h1>
<span class="description">Developer guide</span>
</header>
diff --git a/deps/npm/docs/output/using-npm/logging.html b/deps/npm/docs/output/using-npm/logging.html
index 352752b2507..2b7c37803e9 100644
--- a/deps/npm/docs/output/using-npm/logging.html
+++ b/deps/npm/docs/output/using-npm/logging.html
@@ -186,9 +186,9 @@ npm command-line interface
<section id="content">
<header class="title">
-<h1 id="----logging----1222">
+<h1 id="----logging----1223">
<span>Logging</span>
- <span class="version">@12.2.2</span>
+ <span class="version">@12.2.3</span>
</h1>
<span class="description">Why, What & How we Log</span>
</header>
diff --git a/deps/npm/docs/output/using-npm/orgs.html b/deps/npm/docs/output/using-npm/orgs.html
index 26ee0603d67..fc91b4656b6 100644
--- a/deps/npm/docs/output/using-npm/orgs.html
+++ b/deps/npm/docs/output/using-npm/orgs.html
@@ -186,9 +186,9 @@ npm command-line interface
<section id="content">
<header class="title">
-<h1 id="----organizations----1222">
+<h1 id="----organizations----1223">
<span>Organizations</span>
- <span class="version">@12.2.2</span>
+ <span class="version">@12.2.3</span>
</h1>
<span class="description">Working with teams & organizations</span>
</header>
diff --git a/deps/npm/docs/output/using-npm/package-spec.html b/deps/npm/docs/output/using-npm/package-spec.html
index e25f71a8e1e..001cec2b026 100644
--- a/deps/npm/docs/output/using-npm/package-spec.html
+++ b/deps/npm/docs/output/using-npm/package-spec.html
@@ -186,9 +186,9 @@ npm command-line interface
<section id="content">
<header class="title">
-<h1 id="----package-spec----1222">
+<h1 id="----package-spec----1223">
<span>Package spec</span>
- <span class="version">@12.2.2</span>
+ <span class="version">@12.2.3</span>
</h1>
<span class="description">Package name specifier</span>
</header>
diff --git a/deps/npm/docs/output/using-npm/registry.html b/deps/npm/docs/output/using-npm/registry.html
index 3139f4ea305..4fc393eae3f 100644
--- a/deps/npm/docs/output/using-npm/registry.html
+++ b/deps/npm/docs/output/using-npm/registry.html
@@ -186,9 +186,9 @@ npm command-line interface
<section id="content">
<header class="title">
-<h1 id="----registry----1222">
+<h1 id="----registry----1223">
<span>Registry</span>
- <span class="version">@12.2.2</span>
+ <span class="version">@12.2.3</span>
</h1>
<span class="description">The JavaScript Package Registry</span>
</header>
diff --git a/deps/npm/docs/output/using-npm/removal.html b/deps/npm/docs/output/using-npm/removal.html
index b11487ded28..f06ef250393 100644
--- a/deps/npm/docs/output/using-npm/removal.html
+++ b/deps/npm/docs/output/using-npm/removal.html
@@ -186,9 +186,9 @@ npm command-line interface
<section id="content">
<header class="title">
-<h1 id="----removal----1222">
+<h1 id="----removal----1223">
<span>Removal</span>
- <span class="version">@12.2.2</span>
+ <span class="version">@12.2.3</span>
</h1>
<span class="description">Cleaning the slate</span>
</header>
diff --git a/deps/npm/docs/output/using-npm/scope.html b/deps/npm/docs/output/using-npm/scope.html
index 684642f50a7..049267b8205 100644
--- a/deps/npm/docs/output/using-npm/scope.html
+++ b/deps/npm/docs/output/using-npm/scope.html
@@ -186,9 +186,9 @@ npm command-line interface
<section id="content">
<header class="title">
-<h1 id="----scope----1222">
+<h1 id="----scope----1223">
<span>Scope</span>
- <span class="version">@12.2.2</span>
+ <span class="version">@12.2.3</span>
</h1>
<span class="description">Scoped packages</span>
</header>
diff --git a/deps/npm/docs/output/using-npm/scripts.html b/deps/npm/docs/output/using-npm/scripts.html
index cb78e8f079c..eba70755f76 100644
--- a/deps/npm/docs/output/using-npm/scripts.html
+++ b/deps/npm/docs/output/using-npm/scripts.html
@@ -186,9 +186,9 @@ npm command-line interface
<section id="content">
<header class="title">
-<h1 id="----scripts----1222">
+<h1 id="----scripts----1223">
<span>Scripts</span>
- <span class="version">@12.2.2</span>
+ <span class="version">@12.2.3</span>
</h1>
<span class="description">How npm handles the "scripts" field</span>
</header>
diff --git a/deps/npm/docs/output/using-npm/workspaces.html b/deps/npm/docs/output/using-npm/workspaces.html
index b34d4b7e98a..184b3d22a78 100644
--- a/deps/npm/docs/output/using-npm/workspaces.html
+++ b/deps/npm/docs/output/using-npm/workspaces.html
@@ -186,9 +186,9 @@ npm command-line interface
<section id="content">
<header class="title">
-<h1 id="----workspaces----1222">
+<h1 id="----workspaces----1223">
<span>Workspaces</span>
- <span class="version">@12.2.2</span>
+ <span class="version">@12.2.3</span>
</h1>
<span class="description">Working with workspaces</span>
</header>
diff --git a/deps/npm/lib/commands/exec.js b/deps/npm/lib/commands/exec.js
index 7b7d8ad30fc..930a68de0ba 100644
--- a/deps/npm/lib/commands/exec.js
+++ b/deps/npm/lib/commands/exec.js
@@ -88,8 +88,6 @@ class Exec extends BaseCommand {
return libexec({
...flatOptions,
allowScripts: allowScriptsPolicy,
- // we explicitly set packageLockOnly to false because if it's true when we try to install a missing package, we won't actually install it
- packageLockOnly: false,
// what the user asked to run args[0] is run by default
args: [...args], // copy args so they don't get mutated
// specify a custom command to be run instead of args[0]
diff --git a/deps/npm/lib/commands/unpublish.js b/deps/npm/lib/commands/unpublish.js
index fc390a2b9ed..8b55ef9476d 100644
--- a/deps/npm/lib/commands/unpublish.js
+++ b/deps/npm/lib/commands/unpublish.js
@@ -26,7 +26,7 @@ class Unpublish extends BaseCommand {
query: { write: true },
_isRoot: true,
})
- return Object.keys(packument.versions)
+ return Object.keys(packument.versions || {})
}
static async completion (args, npm) {
@@ -136,6 +136,9 @@ class Unpublish extends BaseCommand {
}
const versions = await Unpublish.getKeysOfVersions(spec.name, opts)
+ if (versions.length === 0 && spec.type === 'version') {
+ throw this.usageError(`Refusing to delete ${spec.name}@${spec.rawSpec}: the registry returned no versions for ${spec.name}.`)
+ }
if (versions.length === 1 && spec.rawSpec === versions[0] && !force) {
throw this.usageError(LAST_REMAINING_VERSION_ERROR)
}
diff --git a/deps/npm/lib/utils/check-allow-scripts.js b/deps/npm/lib/utils/check-allow-scripts.js
index 47984803cde..352f8e7cb9b 100644
--- a/deps/npm/lib/utils/check-allow-scripts.js
+++ b/deps/npm/lib/utils/check-allow-scripts.js
@@ -15,13 +15,20 @@ const { collectUnreviewedScripts } = require('@npmcli/arborist/lib/unreviewed-sc
// `includeWhenIgnored` keeps listing unreviewed packages even when
// ignore-scripts is set, so approve/deny can show what you'd move from a
// blanket ignore-scripts to an allowlist. Execution callers leave it false.
-const checkAllowScripts = async ({ arb, npm, tree, includeWhenIgnored = false }) =>
+const checkAllowScripts = async ({
+ arb,
+ npm,
+ tree,
+ includeWhenIgnored = false,
+ skipExtraneous = false,
+}) =>
collectUnreviewedScripts({
tree: tree || arb.actualTree,
policy: arb.options?.allowScripts || null,
ignoreScripts: !!arb.options?.ignoreScripts,
dangerouslyAllowAllScripts: !!npm?.flatOptions?.dangerouslyAllowAllScripts,
includeWhenIgnored,
+ skipExtraneous,
})
module.exports = checkAllowScripts
diff --git a/deps/npm/lib/utils/is-windows.js b/deps/npm/lib/utils/is-windows.js
index 63c5671d840..d4513e3e98e 100644
--- a/deps/npm/lib/utils/is-windows.js
+++ b/deps/npm/lib/utils/is-windows.js
@@ -1,4 +1,8 @@
+const isGitBashMsystem = (msystem) =>
+ /^(MINGW(32|64)|UCRT64|CLANG(32|64|ARM64))$/.test(msystem || '')
+
const isWindowsShell = (process.platform === 'win32') &&
- !/^MINGW(32|64)$/.test(process.env.MSYSTEM) && process.env.TERM !== 'cygwin'
+ !isGitBashMsystem(process.env.MSYSTEM) && process.env.TERM !== 'cygwin'
exports.isWindowsShell = isWindowsShell
+exports.isGitBashMsystem = isGitBashMsystem
diff --git a/deps/npm/lib/utils/reify-finish.js b/deps/npm/lib/utils/reify-finish.js
index 1041c53fdb9..0278f9b5919 100644
--- a/deps/npm/lib/utils/reify-finish.js
+++ b/deps/npm/lib/utils/reify-finish.js
@@ -18,7 +18,7 @@ const reifyFinish = async (npm, arb) => {
}
}
warnWorkspaceAllowScripts(arb.actualTree)
- const unreviewedScripts = await checkAllowScripts({ arb, npm })
+ const unreviewedScripts = await checkAllowScripts({ arb, npm, skipExtraneous: true })
reifyOutput(npm, arb, { unreviewedScripts })
}
diff --git a/deps/npm/lib/utils/strict-allow-scripts-preflight.js b/deps/npm/lib/utils/strict-allow-scripts-preflight.js
index 0c500018184..2bb5ceb6d9d 100644
--- a/deps/npm/lib/utils/strict-allow-scripts-preflight.js
+++ b/deps/npm/lib/utils/strict-allow-scripts-preflight.js
@@ -33,7 +33,12 @@ const strictAllowScriptsPreflight = async ({ arb, npm, idealTreeOpts }) => {
tree = arb.actualTree
}
- const unreviewed = await checkAllowScripts({ arb, npm, tree })
+ const unreviewed = await checkAllowScripts({
+ arb,
+ npm,
+ tree,
+ skipExtraneous: idealTreeOpts !== undefined,
+ })
if (unreviewed.length === 0) {
return
}
diff --git a/deps/npm/man/man1/npm-access.1 b/deps/npm/man/man1/npm-access.1
index 324c220e5f9..67ab9639354 100644
--- a/deps/npm/man/man1/npm-access.1
+++ b/deps/npm/man/man1/npm-access.1
@@ -1,4 +1,4 @@
-.TH "NPM-ACCESS" "1" "November 2026" "NPM@12.2.2" ""
+.TH "NPM-ACCESS" "1" "November 2026" "NPM@12.2.3" ""
.SH "NAME"
\fBnpm-access\fR - Set access level on published packages
.SS "Synopsis"
diff --git a/deps/npm/man/man1/npm-approve-scripts.1 b/deps/npm/man/man1/npm-approve-scripts.1
index afd31482a63..c1bd7a0791b 100644
--- a/deps/npm/man/man1/npm-approve-scripts.1
+++ b/deps/npm/man/man1/npm-approve-scripts.1
@@ -1,4 +1,4 @@
-.TH "NPM-APPROVE-SCRIPTS" "1" "November 2026" "NPM@12.2.2" ""
+.TH "NPM-APPROVE-SCRIPTS" "1" "November 2026" "NPM@12.2.3" ""
.SH "NAME"
\fBnpm-approve-scripts\fR - Approve install scripts for specific dependencies
.SS "Synopsis"
diff --git a/deps/npm/man/man1/npm-audit.1 b/deps/npm/man/man1/npm-audit.1
index 1f1e65aca70..91e51aee7a1 100644
--- a/deps/npm/man/man1/npm-audit.1
+++ b/deps/npm/man/man1/npm-audit.1
@@ -1,4 +1,4 @@
-.TH "NPM-AUDIT" "1" "November 2026" "NPM@12.2.2" ""
+.TH "NPM-AUDIT" "1" "November 2026" "NPM@12.2.3" ""
.SH "NAME"
\fBnpm-audit\fR - Run a security audit
.SS "Synopsis"
diff --git a/deps/npm/man/man1/npm-bugs.1 b/deps/npm/man/man1/npm-bugs.1
index ce79290f603..497415d7b84 100644
--- a/deps/npm/man/man1/npm-bugs.1
+++ b/deps/npm/man/man1/npm-bugs.1
@@ -1,4 +1,4 @@
-.TH "NPM-BUGS" "1" "November 2026" "NPM@12.2.2" ""
+.TH "NPM-BUGS" "1" "November 2026" "NPM@12.2.3" ""
.SH "NAME"
\fBnpm-bugs\fR - Report bugs for a package in a web browser
.SS "Synopsis"
diff --git a/deps/npm/man/man1/npm-cache.1 b/deps/npm/man/man1/npm-cache.1
index b0b872ea888..04b0dc35acd 100644
--- a/deps/npm/man/man1/npm-cache.1
+++ b/deps/npm/man/man1/npm-cache.1
@@ -1,4 +1,4 @@
-.TH "NPM-CACHE" "1" "November 2026" "NPM@12.2.2" ""
+.TH "NPM-CACHE" "1" "November 2026" "NPM@12.2.3" ""
.SH "NAME"
\fBnpm-cache\fR - Manipulates packages cache
.SS "Synopsis"
diff --git a/deps/npm/man/man1/npm-ci.1 b/deps/npm/man/man1/npm-ci.1
index 602bac82785..b0f4716c197 100644
--- a/deps/npm/man/man1/npm-ci.1
+++ b/deps/npm/man/man1/npm-ci.1
@@ -1,4 +1,4 @@
-.TH "NPM-CI" "1" "November 2026" "NPM@12.2.2" ""
+.TH "NPM-CI" "1" "November 2026" "NPM@12.2.3" ""
.SH "NAME"
\fBnpm-ci\fR - Clean install a project
.SS "Synopsis"
@@ -254,6 +254,8 @@ If \fBtrue\fR, turn the install-script policy from a warning into a hard error:
Dependencies explicitly denied with \fBfalse\fR in \fBallowScripts\fR are always silently skipped; this setting only affects unreviewed entries (packages with install scripts that are neither approved nor denied). \fB--ignore-scripts\fR and \fB--dangerously-allow-all-scripts\fR both override this setting.
.P
Optional dependencies that cannot be installed on the current platform or engine (a non-matching \fBos\fR, \fBcpu\fR, or \fBlibc\fR) are not flagged, because their install scripts never run.
+.P
+Installation checks skip unused entries with no package parent or incoming links. Local link targets that installation can still rebuild remain subject to this check. \fBnpm rebuild\fR and \fBnpm install-scripts ls\fR still check unused packages on disk.
.SS "\fBdangerously-allow-all-scripts\fR"
.RS 0
.IP \(bu 4
diff --git a/deps/npm/man/man1/npm-completion.1 b/deps/npm/man/man1/npm-completion.1
index a1d2038a9fc..4cc53229bf1 100644
--- a/deps/npm/man/man1/npm-completion.1
+++ b/deps/npm/man/man1/npm-completion.1
@@ -1,4 +1,4 @@
-.TH "NPM-COMPLETION" "1" "November 2026" "NPM@12.2.2" ""
+.TH "NPM-COMPLETION" "1" "November 2026" "NPM@12.2.3" ""
.SH "NAME"
\fBnpm-completion\fR - Tab Completion for npm
.SS "Synopsis"
diff --git a/deps/npm/man/man1/npm-config.1 b/deps/npm/man/man1/npm-config.1
index 442a17aca7f..1feffc654e0 100644
--- a/deps/npm/man/man1/npm-config.1
+++ b/deps/npm/man/man1/npm-config.1
@@ -1,4 +1,4 @@
-.TH "NPM-CONFIG" "1" "November 2026" "NPM@12.2.2" ""
+.TH "NPM-CONFIG" "1" "November 2026" "NPM@12.2.3" ""
.SH "NAME"
\fBnpm-config\fR - Manage the npm configuration files
.SS "Synopsis"
diff --git a/deps/npm/man/man1/npm-dedupe.1 b/deps/npm/man/man1/npm-dedupe.1
index 861a94c8657..b1d26948666 100644
--- a/deps/npm/man/man1/npm-dedupe.1
+++ b/deps/npm/man/man1/npm-dedupe.1
@@ -1,4 +1,4 @@
-.TH "NPM-DEDUPE" "1" "November 2026" "NPM@12.2.2" ""
+.TH "NPM-DEDUPE" "1" "November 2026" "NPM@12.2.3" ""
.SH "NAME"
\fBnpm-dedupe\fR - Reduce duplication in the package tree
.SS "Synopsis"
diff --git a/deps/npm/man/man1/npm-deny-scripts.1 b/deps/npm/man/man1/npm-deny-scripts.1
index 7250da8e247..47cf11778eb 100644
--- a/deps/npm/man/man1/npm-deny-scripts.1
+++ b/deps/npm/man/man1/npm-deny-scripts.1
@@ -1,4 +1,4 @@
-.TH "NPM-DENY-SCRIPTS" "1" "November 2026" "NPM@12.2.2" ""
+.TH "NPM-DENY-SCRIPTS" "1" "November 2026" "NPM@12.2.3" ""
.SH "NAME"
\fBnpm-deny-scripts\fR - Deny install scripts for specific dependencies
.SS "Synopsis"
diff --git a/deps/npm/man/man1/npm-deprecate.1 b/deps/npm/man/man1/npm-deprecate.1
index 781c3119b7b..ce1eb5dc466 100644
--- a/deps/npm/man/man1/npm-deprecate.1
+++ b/deps/npm/man/man1/npm-deprecate.1
@@ -1,4 +1,4 @@
-.TH "NPM-DEPRECATE" "1" "November 2026" "NPM@12.2.2" ""
+.TH "NPM-DEPRECATE" "1" "November 2026" "NPM@12.2.3" ""
.SH "NAME"
\fBnpm-deprecate\fR - Deprecate a version of a package
.SS "Synopsis"
diff --git a/deps/npm/man/man1/npm-diff.1 b/deps/npm/man/man1/npm-diff.1
index b9a9edc6285..bd4339affa6 100644
--- a/deps/npm/man/man1/npm-diff.1
+++ b/deps/npm/man/man1/npm-diff.1
@@ -1,4 +1,4 @@
-.TH "NPM-DIFF" "1" "November 2026" "NPM@12.2.2" ""
+.TH "NPM-DIFF" "1" "November 2026" "NPM@12.2.3" ""
.SH "NAME"
\fBnpm-diff\fR - The registry diff command
.SS "Synopsis"
diff --git a/deps/npm/man/man1/npm-dist-tag.1 b/deps/npm/man/man1/npm-dist-tag.1
index 0e22a5cdf8c..749532eaf72 100644
--- a/deps/npm/man/man1/npm-dist-tag.1
+++ b/deps/npm/man/man1/npm-dist-tag.1
@@ -1,4 +1,4 @@
-.TH "NPM-DIST-TAG" "1" "November 2026" "NPM@12.2.2" ""
+.TH "NPM-DIST-TAG" "1" "November 2026" "NPM@12.2.3" ""
.SH "NAME"
\fBnpm-dist-tag\fR - Modify package distribution tags
.SS "Synopsis"
diff --git a/deps/npm/man/man1/npm-docs.1 b/deps/npm/man/man1/npm-docs.1
index bd38207633f..d04c5baa2bc 100644
--- a/deps/npm/man/man1/npm-docs.1
+++ b/deps/npm/man/man1/npm-docs.1
@@ -1,4 +1,4 @@
-.TH "NPM-DOCS" "1" "November 2026" "NPM@12.2.2" ""
+.TH "NPM-DOCS" "1" "November 2026" "NPM@12.2.3" ""
.SH "NAME"
\fBnpm-docs\fR - Open documentation for a package in a web browser
.SS "Synopsis"
diff --git a/deps/npm/man/man1/npm-doctor.1 b/deps/npm/man/man1/npm-doctor.1
index 730593799c1..b358f187a92 100644
--- a/deps/npm/man/man1/npm-doctor.1
+++ b/deps/npm/man/man1/npm-doctor.1
@@ -1,4 +1,4 @@
-.TH "NPM-DOCTOR" "1" "November 2026" "NPM@12.2.2" ""
+.TH "NPM-DOCTOR" "1" "November 2026" "NPM@12.2.3" ""
.SH "NAME"
\fBnpm-doctor\fR - Check the health of your npm environment
.SS "Synopsis"
diff --git a/deps/npm/man/man1/npm-edit.1 b/deps/npm/man/man1/npm-edit.1
index 85c48dd1806..909c4dfa212 100644
--- a/deps/npm/man/man1/npm-edit.1
+++ b/deps/npm/man/man1/npm-edit.1
@@ -1,4 +1,4 @@
-.TH "NPM-EDIT" "1" "November 2026" "NPM@12.2.2" ""
+.TH "NPM-EDIT" "1" "November 2026" "NPM@12.2.3" ""
.SH "NAME"
\fBnpm-edit\fR - Edit an installed package
.SS "Synopsis"
diff --git a/deps/npm/man/man1/npm-exec.1 b/deps/npm/man/man1/npm-exec.1
index 5ef7665a12f..6089a546430 100644
--- a/deps/npm/man/man1/npm-exec.1
+++ b/deps/npm/man/man1/npm-exec.1
@@ -1,4 +1,4 @@
-.TH "NPM-EXEC" "1" "November 2026" "NPM@12.2.2" ""
+.TH "NPM-EXEC" "1" "November 2026" "NPM@12.2.3" ""
.SH "NAME"
\fBnpm-exec\fR - Run a command from a local or remote npm package
.SS "Synopsis"
@@ -197,6 +197,8 @@ If \fBtrue\fR, turn the install-script policy from a warning into a hard error:
Dependencies explicitly denied with \fBfalse\fR in \fBallowScripts\fR are always silently skipped; this setting only affects unreviewed entries (packages with install scripts that are neither approved nor denied). \fB--ignore-scripts\fR and \fB--dangerously-allow-all-scripts\fR both override this setting.
.P
Optional dependencies that cannot be installed on the current platform or engine (a non-matching \fBos\fR, \fBcpu\fR, or \fBlibc\fR) are not flagged, because their install scripts never run.
+.P
+Installation checks skip unused entries with no package parent or incoming links. Local link targets that installation can still rebuild remain subject to this check. \fBnpm rebuild\fR and \fBnpm install-scripts ls\fR still check unused packages on disk.
.SS "\fBdangerously-allow-all-scripts\fR"
.RS 0
.IP \(bu 4
diff --git a/deps/npm/man/man1/npm-explain.1 b/deps/npm/man/man1/npm-explain.1
index c915dd81707..a843006b09b 100644
--- a/deps/npm/man/man1/npm-explain.1
+++ b/deps/npm/man/man1/npm-explain.1
@@ -1,4 +1,4 @@
-.TH "NPM-EXPLAIN" "1" "November 2026" "NPM@12.2.2" ""
+.TH "NPM-EXPLAIN" "1" "November 2026" "NPM@12.2.3" ""
.SH "NAME"
\fBnpm-explain\fR - Explain installed packages
.SS "Synopsis"
diff --git a/deps/npm/man/man1/npm-explore.1 b/deps/npm/man/man1/npm-explore.1
index 2b76b1d5520..753c290857a 100644
--- a/deps/npm/man/man1/npm-explore.1
+++ b/deps/npm/man/man1/npm-explore.1
@@ -1,4 +1,4 @@
-.TH "NPM-EXPLORE" "1" "November 2026" "NPM@12.2.2" ""
+.TH "NPM-EXPLORE" "1" "November 2026" "NPM@12.2.3" ""
.SH "NAME"
\fBnpm-explore\fR - Browse an installed package
.SS "Synopsis"
diff --git a/deps/npm/man/man1/npm-find-dupes.1 b/deps/npm/man/man1/npm-find-dupes.1
index 16718ee7936..5273ad15958 100644
--- a/deps/npm/man/man1/npm-find-dupes.1
+++ b/deps/npm/man/man1/npm-find-dupes.1
@@ -1,4 +1,4 @@
-.TH "NPM-FIND-DUPES" "1" "November 2026" "NPM@12.2.2" ""
+.TH "NPM-FIND-DUPES" "1" "November 2026" "NPM@12.2.3" ""
.SH "NAME"
\fBnpm-find-dupes\fR - Find duplication in the package tree
.SS "Synopsis"
diff --git a/deps/npm/man/man1/npm-fund.1 b/deps/npm/man/man1/npm-fund.1
index 74f81a6636c..4281acfd414 100644
--- a/deps/npm/man/man1/npm-fund.1
+++ b/deps/npm/man/man1/npm-fund.1
@@ -1,4 +1,4 @@
-.TH "NPM-FUND" "1" "November 2026" "NPM@12.2.2" ""
+.TH "NPM-FUND" "1" "November 2026" "NPM@12.2.3" ""
.SH "NAME"
\fBnpm-fund\fR - Retrieve funding information
.SS "Synopsis"
diff --git a/deps/npm/man/man1/npm-get.1 b/deps/npm/man/man1/npm-get.1
index 46f9e70e174..4e8cc7ec69a 100644
--- a/deps/npm/man/man1/npm-get.1
+++ b/deps/npm/man/man1/npm-get.1
@@ -1,4 +1,4 @@
-.TH "NPM-GET" "1" "November 2026" "NPM@12.2.2" ""
+.TH "NPM-GET" "1" "November 2026" "NPM@12.2.3" ""
.SH "NAME"
\fBnpm-get\fR - Get a value from the npm configuration
.SS "Synopsis"
diff --git a/deps/npm/man/man1/npm-help-search.1 b/deps/npm/man/man1/npm-help-search.1
index d38714cdda4..6ea5d629218 100644
--- a/deps/npm/man/man1/npm-help-search.1
+++ b/deps/npm/man/man1/npm-help-search.1
@@ -1,4 +1,4 @@
-.TH "NPM-HELP-SEARCH" "1" "November 2026" "NPM@12.2.2" ""
+.TH "NPM-HELP-SEARCH" "1" "November 2026" "NPM@12.2.3" ""
.SH "NAME"
\fBnpm-help-search\fR - Search npm help documentation
.SS "Synopsis"
diff --git a/deps/npm/man/man1/npm-help.1 b/deps/npm/man/man1/npm-help.1
index 6e3e7d450fe..ff1ef84a9e9 100644
--- a/deps/npm/man/man1/npm-help.1
+++ b/deps/npm/man/man1/npm-help.1
@@ -1,4 +1,4 @@
-.TH "NPM-HELP" "1" "November 2026" "NPM@12.2.2" ""
+.TH "NPM-HELP" "1" "November 2026" "NPM@12.2.3" ""
.SH "NAME"
\fBnpm-help\fR - Get help on npm
.SS "Synopsis"
diff --git a/deps/npm/man/man1/npm-init.1 b/deps/npm/man/man1/npm-init.1
index 48a63eb4bca..3aa9f47d0cd 100644
--- a/deps/npm/man/man1/npm-init.1
+++ b/deps/npm/man/man1/npm-init.1
@@ -1,4 +1,4 @@
-.TH "NPM-INIT" "1" "November 2026" "NPM@12.2.2" ""
+.TH "NPM-INIT" "1" "November 2026" "NPM@12.2.3" ""
.SH "NAME"
\fBnpm-init\fR - Create a package.json file
.SS "Synopsis"
diff --git a/deps/npm/man/man1/npm-install-ci-test.1 b/deps/npm/man/man1/npm-install-ci-test.1
index db3b60c1fff..b5d9983dc87 100644
--- a/deps/npm/man/man1/npm-install-ci-test.1
+++ b/deps/npm/man/man1/npm-install-ci-test.1
@@ -1,4 +1,4 @@
-.TH "NPM-INSTALL-CI-TEST" "1" "November 2026" "NPM@12.2.2" ""
+.TH "NPM-INSTALL-CI-TEST" "1" "November 2026" "NPM@12.2.3" ""
.SH "NAME"
\fBnpm-install-ci-test\fR - Install a project with a clean slate and run tests
.SS "Synopsis"
@@ -202,6 +202,8 @@ If \fBtrue\fR, turn the install-script policy from a warning into a hard error:
Dependencies explicitly denied with \fBfalse\fR in \fBallowScripts\fR are always silently skipped; this setting only affects unreviewed entries (packages with install scripts that are neither approved nor denied). \fB--ignore-scripts\fR and \fB--dangerously-allow-all-scripts\fR both override this setting.
.P
Optional dependencies that cannot be installed on the current platform or engine (a non-matching \fBos\fR, \fBcpu\fR, or \fBlibc\fR) are not flagged, because their install scripts never run.
+.P
+Installation checks skip unused entries with no package parent or incoming links. Local link targets that installation can still rebuild remain subject to this check. \fBnpm rebuild\fR and \fBnpm install-scripts ls\fR still check unused packages on disk.
.SS "\fBdangerously-allow-all-scripts\fR"
.RS 0
.IP \(bu 4
diff --git a/deps/npm/man/man1/npm-install-scripts.1 b/deps/npm/man/man1/npm-install-scripts.1
index c91c2f66d45..e6d173e981e 100644
--- a/deps/npm/man/man1/npm-install-scripts.1
+++ b/deps/npm/man/man1/npm-install-scripts.1
@@ -1,4 +1,4 @@
-.TH "NPM-INSTALL-SCRIPTS" "1" "November 2026" "NPM@12.2.2" ""
+.TH "NPM-INSTALL-SCRIPTS" "1" "November 2026" "NPM@12.2.3" ""
.SH "NAME"
\fBnpm-install-scripts\fR - Manage install-script approvals for dependencies
.SS "Synopsis"
@@ -19,7 +19,7 @@ Note: This command is unaware of workspaces.
.P
Manages the \fBallowScripts\fR field in your project's \fBpackage.json\fR, which records which of your dependencies are permitted to run install scripts (\fBpreinstall\fR, \fBinstall\fR, \fBpostinstall\fR, and \fBprepare\fR for non-registry sources). This is the recommended way to maintain that field.
.P
-Dependency install scripts are blocked by default. Install commands silently skip lifecycle scripts for any dependency that does not have a matching entry in \fBallowScripts\fR, and end with a list of the packages whose scripts were skipped so you can review them here.
+Dependency install scripts are blocked by default. Install commands silently skip lifecycle scripts for any dependency that does not have a matching entry in \fBallowScripts\fR, and end with a list of the packages whose scripts were skipped so you can review them here. These warnings omit disconnected unused entries that installation cannot build. Local link targets that can still be rebuilt remain subject to the policy.
.P
This command only works inside a project that has a \fBpackage.json\fR. Running it with \fB--global\fR (\fB-g\fR) fails with an \fBEGLOBAL\fR error, since global installs (\fBnpm install -g\fR) and one-off executions (\fBnpm exec\fR / \fBnpx\fR) have no project \fBpackage.json\fR to write to. To allow install scripts in those contexts, use the \fB--allow-scripts\fR flag at install time (for example \fBnpm install -g --allow-scripts=canvas,sharp\fR) or persist the setting with \fBnpm config set allow-scripts=canvas,sharp --location=user\fR.
.P
@@ -40,7 +40,7 @@ npm install-scripts prune
.P
\fBdeny\fR records an explicit denial for the named packages (a name-only \fBfalse\fR entry), which survives \fBnpm install-scripts approve --all\fR and excludes the package from any future blanket approval. \fB--all\fR denies every package with unreviewed install scripts.
.P
-\fBls\fR is read-only: it lists every package whose install scripts are not yet covered by \fBallowScripts\fR, without modifying \fBpackage.json\fR.
+\fBls\fR is read-only: it lists every package whose install scripts are not yet covered by \fBallowScripts\fR, without modifying \fBpackage.json\fR. This includes unreviewed extraneous packages, which are installed but not required by any dependency. These packages can still cause \fBnpm rebuild --strict-allow-scripts\fR to fail.
.P
\fBprune\fR removes \fBallowScripts\fR entries that no longer match an installed package with an install script, either because the package is no longer installed (a transitive dependency changed, or a pinned \fBpkg@1.2.3\fR was upgraded) or because it no longer has an install script. Both approvals (\fBtrue\fR) and denials (\fBfalse\fR) are removed. It edits only the \fBallowScripts\fR field in \fBpackage.json\fR, never \fB.npmrc\fR or \fB--allow-scripts\fR. Pass \fB--dry-run\fR to preview without writing. Unparseable keys are left alone.
.P
diff --git a/deps/npm/man/man1/npm-install-test.1 b/deps/npm/man/man1/npm-install-test.1
index 00e1adced34..6d0ae8a3b89 100644
--- a/deps/npm/man/man1/npm-install-test.1
+++ b/deps/npm/man/man1/npm-install-test.1
@@ -1,4 +1,4 @@
-.TH "NPM-INSTALL-TEST" "1" "November 2026" "NPM@12.2.2" ""
+.TH "NPM-INSTALL-TEST" "1" "November 2026" "NPM@12.2.3" ""
.SH "NAME"
\fBnpm-install-test\fR - Install package(s) and run tests
.SS "Synopsis"
@@ -279,6 +279,8 @@ If \fBtrue\fR, turn the install-script policy from a warning into a hard error:
Dependencies explicitly denied with \fBfalse\fR in \fBallowScripts\fR are always silently skipped; this setting only affects unreviewed entries (packages with install scripts that are neither approved nor denied). \fB--ignore-scripts\fR and \fB--dangerously-allow-all-scripts\fR both override this setting.
.P
Optional dependencies that cannot be installed on the current platform or engine (a non-matching \fBos\fR, \fBcpu\fR, or \fBlibc\fR) are not flagged, because their install scripts never run.
+.P
+Installation checks skip unused entries with no package parent or incoming links. Local link targets that installation can still rebuild remain subject to this check. \fBnpm rebuild\fR and \fBnpm install-scripts ls\fR still check unused packages on disk.
.SS "\fBdangerously-allow-all-scripts\fR"
.RS 0
.IP \(bu 4
diff --git a/deps/npm/man/man1/npm-install.1 b/deps/npm/man/man1/npm-install.1
index ebcdf8f33fc..5b52babce55 100644
--- a/deps/npm/man/man1/npm-install.1
+++ b/deps/npm/man/man1/npm-install.1
@@ -1,4 +1,4 @@
-.TH "NPM-INSTALL" "1" "November 2026" "NPM@12.2.2" ""
+.TH "NPM-INSTALL" "1" "November 2026" "NPM@12.2.3" ""
.SH "NAME"
\fBnpm-install\fR - Install a package
.SS "Synopsis"
@@ -667,6 +667,8 @@ If \fBtrue\fR, turn the install-script policy from a warning into a hard error:
Dependencies explicitly denied with \fBfalse\fR in \fBallowScripts\fR are always silently skipped; this setting only affects unreviewed entries (packages with install scripts that are neither approved nor denied). \fB--ignore-scripts\fR and \fB--dangerously-allow-all-scripts\fR both override this setting.
.P
Optional dependencies that cannot be installed on the current platform or engine (a non-matching \fBos\fR, \fBcpu\fR, or \fBlibc\fR) are not flagged, because their install scripts never run.
+.P
+Installation checks skip unused entries with no package parent or incoming links. Local link targets that installation can still rebuild remain subject to this check. \fBnpm rebuild\fR and \fBnpm install-scripts ls\fR still check unused packages on disk.
.SS "\fBdangerously-allow-all-scripts\fR"
.RS 0
.IP \(bu 4
diff --git a/deps/npm/man/man1/npm-link.1 b/deps/npm/man/man1/npm-link.1
index 6e01fa12f7a..9cdd1865a96 100644
--- a/deps/npm/man/man1/npm-link.1
+++ b/deps/npm/man/man1/npm-link.1
@@ -1,4 +1,4 @@
-.TH "NPM-LINK" "1" "November 2026" "NPM@12.2.2" ""
+.TH "NPM-LINK" "1" "November 2026" "NPM@12.2.3" ""
.SH "NAME"
\fBnpm-link\fR - Symlink a package folder
.SS "Synopsis"
diff --git a/deps/npm/man/man1/npm-ll.1 b/deps/npm/man/man1/npm-ll.1
index 9a4c9dd4d96..259de7410be 100644
--- a/deps/npm/man/man1/npm-ll.1
+++ b/deps/npm/man/man1/npm-ll.1
@@ -1,4 +1,4 @@
-.TH "NPM-LL" "1" "November 2026" "NPM@12.2.2" ""
+.TH "NPM-LL" "1" "November 2026" "NPM@12.2.3" ""
.SH "NAME"
\fBnpm-ll\fR - List installed packages
.SS "Synopsis"
diff --git a/deps/npm/man/man1/npm-login.1 b/deps/npm/man/man1/npm-login.1
index 528cbd6bd78..65667ad6e93 100644
--- a/deps/npm/man/man1/npm-login.1
+++ b/deps/npm/man/man1/npm-login.1
@@ -1,4 +1,4 @@
-.TH "NPM-LOGIN" "1" "November 2026" "NPM@12.2.2" ""
+.TH "NPM-LOGIN" "1" "November 2026" "NPM@12.2.3" ""
.SH "NAME"
\fBnpm-login\fR - Login to a registry user account
.SS "Synopsis"
diff --git a/deps/npm/man/man1/npm-logout.1 b/deps/npm/man/man1/npm-logout.1
index 9615a4d0627..d6a861954cc 100644
--- a/deps/npm/man/man1/npm-logout.1
+++ b/deps/npm/man/man1/npm-logout.1
@@ -1,4 +1,4 @@
-.TH "NPM-LOGOUT" "1" "November 2026" "NPM@12.2.2" ""
+.TH "NPM-LOGOUT" "1" "November 2026" "NPM@12.2.3" ""
.SH "NAME"
\fBnpm-logout\fR - Log out of the registry
.SS "Synopsis"
diff --git a/deps/npm/man/man1/npm-ls.1 b/deps/npm/man/man1/npm-ls.1
index 8e3cbf0f6cd..0827655ae5f 100644
--- a/deps/npm/man/man1/npm-ls.1
+++ b/deps/npm/man/man1/npm-ls.1
@@ -1,4 +1,4 @@
-.TH "NPM-LS" "1" "November 2026" "NPM@12.2.2" ""
+.TH "NPM-LS" "1" "November 2026" "NPM@12.2.3" ""
.SH "NAME"
\fBnpm-ls\fR - List installed packages
.SS "Synopsis"
@@ -20,7 +20,7 @@ Positional arguments are \fBname@version-range\fR identifiers, which will limit
.P
.RS 2
.nf
-npm@12.2.2 /path/to/npm
+npm@12.2.3 /path/to/npm
└─┬ init-package-json@0.0.4
└── promzard@0.1.5
.fi
diff --git a/deps/npm/man/man1/npm-org.1 b/deps/npm/man/man1/npm-org.1
index 43a33b5a80d..9eafb981a11 100644
--- a/deps/npm/man/man1/npm-org.1
+++ b/deps/npm/man/man1/npm-org.1
@@ -1,4 +1,4 @@
-.TH "NPM-ORG" "1" "November 2026" "NPM@12.2.2" ""
+.TH "NPM-ORG" "1" "November 2026" "NPM@12.2.3" ""
.SH "NAME"
\fBnpm-org\fR - Manage orgs
.SS "Synopsis"
diff --git a/deps/npm/man/man1/npm-outdated.1 b/deps/npm/man/man1/npm-outdated.1
index 088147b68da..0266323a48a 100644
--- a/deps/npm/man/man1/npm-outdated.1
+++ b/deps/npm/man/man1/npm-outdated.1
@@ -1,4 +1,4 @@
-.TH "NPM-OUTDATED" "1" "November 2026" "NPM@12.2.2" ""
+.TH "NPM-OUTDATED" "1" "November 2026" "NPM@12.2.3" ""
.SH "NAME"
\fBnpm-outdated\fR - Check for outdated packages
.SS "Synopsis"
diff --git a/deps/npm/man/man1/npm-owner.1 b/deps/npm/man/man1/npm-owner.1
index 341f0d86ff0..3d681824562 100644
--- a/deps/npm/man/man1/npm-owner.1
+++ b/deps/npm/man/man1/npm-owner.1
@@ -1,4 +1,4 @@
-.TH "NPM-OWNER" "1" "November 2026" "NPM@12.2.2" ""
+.TH "NPM-OWNER" "1" "November 2026" "NPM@12.2.3" ""
.SH "NAME"
\fBnpm-owner\fR - Manage package owners
.SS "Synopsis"
diff --git a/deps/npm/man/man1/npm-pack.1 b/deps/npm/man/man1/npm-pack.1
index efd0fe7e891..7ad5fce0f22 100644
--- a/deps/npm/man/man1/npm-pack.1
+++ b/deps/npm/man/man1/npm-pack.1
@@ -1,4 +1,4 @@
-.TH "NPM-PACK" "1" "November 2026" "NPM@12.2.2" ""
+.TH "NPM-PACK" "1" "November 2026" "NPM@12.2.3" ""
.SH "NAME"
\fBnpm-pack\fR - Create a tarball from a package
.SS "Synopsis"
diff --git a/deps/npm/man/man1/npm-patch.1 b/deps/npm/man/man1/npm-patch.1
index 8566db4005f..e20b2d65fba 100644
--- a/deps/npm/man/man1/npm-patch.1
+++ b/deps/npm/man/man1/npm-patch.1
@@ -1,4 +1,4 @@
-.TH "NPM-PATCH" "1" "November 2026" "NPM@12.2.2" ""
+.TH "NPM-PATCH" "1" "November 2026" "NPM@12.2.3" ""
.SH "NAME"
\fBnpm-patch\fR - Apply local patches to installed dependencies
.SS "Synopsis"
diff --git a/deps/npm/man/man1/npm-ping.1 b/deps/npm/man/man1/npm-ping.1
index d7ea10b46e9..1d0ce6e6afd 100644
--- a/deps/npm/man/man1/npm-ping.1
+++ b/deps/npm/man/man1/npm-ping.1
@@ -1,4 +1,4 @@
-.TH "NPM-PING" "1" "November 2026" "NPM@12.2.2" ""
+.TH "NPM-PING" "1" "November 2026" "NPM@12.2.3" ""
.SH "NAME"
\fBnpm-ping\fR - Ping npm registry
.SS "Synopsis"
diff --git a/deps/npm/man/man1/npm-pkg.1 b/deps/npm/man/man1/npm-pkg.1
index a4ba9cff71d..a341de8306e 100644
--- a/deps/npm/man/man1/npm-pkg.1
+++ b/deps/npm/man/man1/npm-pkg.1
@@ -1,4 +1,4 @@
-.TH "NPM-PKG" "1" "November 2026" "NPM@12.2.2" ""
+.TH "NPM-PKG" "1" "November 2026" "NPM@12.2.3" ""
.SH "NAME"
\fBnpm-pkg\fR - Manages your package.json
.SS "Synopsis"
diff --git a/deps/npm/man/man1/npm-prefix.1 b/deps/npm/man/man1/npm-prefix.1
index b040821494d..c42f9205955 100644
--- a/deps/npm/man/man1/npm-prefix.1
+++ b/deps/npm/man/man1/npm-prefix.1
@@ -1,4 +1,4 @@
-.TH "NPM-PREFIX" "1" "November 2026" "NPM@12.2.2" ""
+.TH "NPM-PREFIX" "1" "November 2026" "NPM@12.2.3" ""
.SH "NAME"
\fBnpm-prefix\fR - Display prefix
.SS "Synopsis"
diff --git a/deps/npm/man/man1/npm-profile.1 b/deps/npm/man/man1/npm-profile.1
index 8676592d547..d4962477a9b 100644
--- a/deps/npm/man/man1/npm-profile.1
+++ b/deps/npm/man/man1/npm-profile.1
@@ -1,4 +1,4 @@
-.TH "NPM-PROFILE" "1" "November 2026" "NPM@12.2.2" ""
+.TH "NPM-PROFILE" "1" "November 2026" "NPM@12.2.3" ""
.SH "NAME"
\fBnpm-profile\fR - Change settings on your registry profile
.SS "Synopsis"
diff --git a/deps/npm/man/man1/npm-prune.1 b/deps/npm/man/man1/npm-prune.1
index 3403426106d..55f72cb1dcf 100644
--- a/deps/npm/man/man1/npm-prune.1
+++ b/deps/npm/man/man1/npm-prune.1
@@ -1,4 +1,4 @@
-.TH "NPM-PRUNE" "1" "November 2026" "NPM@12.2.2" ""
+.TH "NPM-PRUNE" "1" "November 2026" "NPM@12.2.3" ""
.SH "NAME"
\fBnpm-prune\fR - Remove extraneous packages
.SS "Synopsis"
diff --git a/deps/npm/man/man1/npm-publish.1 b/deps/npm/man/man1/npm-publish.1
index 96fc7285c8d..60b4f2fe266 100644
--- a/deps/npm/man/man1/npm-publish.1
+++ b/deps/npm/man/man1/npm-publish.1
@@ -1,4 +1,4 @@
-.TH "NPM-PUBLISH" "1" "November 2026" "NPM@12.2.2" ""
+.TH "NPM-PUBLISH" "1" "November 2026" "NPM@12.2.3" ""
.SH "NAME"
\fBnpm-publish\fR - Publish a package
.SS "Synopsis"
diff --git a/deps/npm/man/man1/npm-query.1 b/deps/npm/man/man1/npm-query.1
index a21a449797d..e5e242d14b7 100644
--- a/deps/npm/man/man1/npm-query.1
+++ b/deps/npm/man/man1/npm-query.1
@@ -1,4 +1,4 @@
-.TH "NPM-QUERY" "1" "November 2026" "NPM@12.2.2" ""
+.TH "NPM-QUERY" "1" "November 2026" "NPM@12.2.3" ""
.SH "NAME"
\fBnpm-query\fR - Dependency selector query
.SS "Synopsis"
diff --git a/deps/npm/man/man1/npm-rebuild.1 b/deps/npm/man/man1/npm-rebuild.1
index af397b47dd0..94562c4e158 100644
--- a/deps/npm/man/man1/npm-rebuild.1
+++ b/deps/npm/man/man1/npm-rebuild.1
@@ -1,4 +1,4 @@
-.TH "NPM-REBUILD" "1" "November 2026" "NPM@12.2.2" ""
+.TH "NPM-REBUILD" "1" "November 2026" "NPM@12.2.3" ""
.SH "NAME"
\fBnpm-rebuild\fR - Rebuild a package
.SS "Synopsis"
@@ -133,6 +133,8 @@ If \fBtrue\fR, turn the install-script policy from a warning into a hard error:
Dependencies explicitly denied with \fBfalse\fR in \fBallowScripts\fR are always silently skipped; this setting only affects unreviewed entries (packages with install scripts that are neither approved nor denied). \fB--ignore-scripts\fR and \fB--dangerously-allow-all-scripts\fR both override this setting.
.P
Optional dependencies that cannot be installed on the current platform or engine (a non-matching \fBos\fR, \fBcpu\fR, or \fBlibc\fR) are not flagged, because their install scripts never run.
+.P
+Installation checks skip unused entries with no package parent or incoming links. Local link targets that installation can still rebuild remain subject to this check. \fBnpm rebuild\fR and \fBnpm install-scripts ls\fR still check unused packages on disk.
.SS "\fBdangerously-allow-all-scripts\fR"
.RS 0
.IP \(bu 4
diff --git a/deps/npm/man/man1/npm-repo.1 b/deps/npm/man/man1/npm-repo.1
index 2c9762dfaa1..f13e406ee47 100644
--- a/deps/npm/man/man1/npm-repo.1
+++ b/deps/npm/man/man1/npm-repo.1
@@ -1,4 +1,4 @@
-.TH "NPM-REPO" "1" "November 2026" "NPM@12.2.2" ""
+.TH "NPM-REPO" "1" "November 2026" "NPM@12.2.3" ""
.SH "NAME"
\fBnpm-repo\fR - Open package repository page in the browser
.SS "Synopsis"
diff --git a/deps/npm/man/man1/npm-restart.1 b/deps/npm/man/man1/npm-restart.1
index 60db8303f54..e83b55eb79c 100644
--- a/deps/npm/man/man1/npm-restart.1
+++ b/deps/npm/man/man1/npm-restart.1
@@ -1,4 +1,4 @@
-.TH "NPM-RESTART" "1" "November 2026" "NPM@12.2.2" ""
+.TH "NPM-RESTART" "1" "November 2026" "NPM@12.2.3" ""
.SH "NAME"
\fBnpm-restart\fR - Restart a package
.SS "Synopsis"
diff --git a/deps/npm/man/man1/npm-root.1 b/deps/npm/man/man1/npm-root.1
index a9992453f1b..f73b06cfa33 100644
--- a/deps/npm/man/man1/npm-root.1
+++ b/deps/npm/man/man1/npm-root.1
@@ -1,4 +1,4 @@
-.TH "NPM-ROOT" "1" "November 2026" "NPM@12.2.2" ""
+.TH "NPM-ROOT" "1" "November 2026" "NPM@12.2.3" ""
.SH "NAME"
\fBnpm-root\fR - Display npm root
.SS "Synopsis"
diff --git a/deps/npm/man/man1/npm-run.1 b/deps/npm/man/man1/npm-run.1
index f47f81e3b7b..7c521dfcd7e 100644
--- a/deps/npm/man/man1/npm-run.1
+++ b/deps/npm/man/man1/npm-run.1
@@ -1,4 +1,4 @@
-.TH "NPM-RUN" "1" "November 2026" "NPM@12.2.2" ""
+.TH "NPM-RUN" "1" "November 2026" "NPM@12.2.3" ""
.SH "NAME"
\fBnpm-run\fR - Run arbitrary package scripts
.SS "Synopsis"
diff --git a/deps/npm/man/man1/npm-sbom.1 b/deps/npm/man/man1/npm-sbom.1
index 7f0126d347e..def290bba9a 100644
--- a/deps/npm/man/man1/npm-sbom.1
+++ b/deps/npm/man/man1/npm-sbom.1
@@ -1,4 +1,4 @@
-.TH "NPM-SBOM" "1" "November 2026" "NPM@12.2.2" ""
+.TH "NPM-SBOM" "1" "November 2026" "NPM@12.2.3" ""
.SH "NAME"
\fBnpm-sbom\fR - Generate a Software Bill of Materials (SBOM)
.SS "Synopsis"
diff --git a/deps/npm/man/man1/npm-search.1 b/deps/npm/man/man1/npm-search.1
index 08e58b7eba7..5ac93a66265 100644
--- a/deps/npm/man/man1/npm-search.1
+++ b/deps/npm/man/man1/npm-search.1
@@ -1,4 +1,4 @@
-.TH "NPM-SEARCH" "1" "November 2026" "NPM@12.2.2" ""
+.TH "NPM-SEARCH" "1" "November 2026" "NPM@12.2.3" ""
.SH "NAME"
\fBnpm-search\fR - Search for packages
.SS "Synopsis"
diff --git a/deps/npm/man/man1/npm-set.1 b/deps/npm/man/man1/npm-set.1
index 00f7d9362e6..a31c8cc5a23 100644
--- a/deps/npm/man/man1/npm-set.1
+++ b/deps/npm/man/man1/npm-set.1
@@ -1,4 +1,4 @@
-.TH "NPM-SET" "1" "November 2026" "NPM@12.2.2" ""
+.TH "NPM-SET" "1" "November 2026" "NPM@12.2.3" ""
.SH "NAME"
\fBnpm-set\fR - Set a value in the npm configuration
.SS "Synopsis"
diff --git a/deps/npm/man/man1/npm-stage.1 b/deps/npm/man/man1/npm-stage.1
index 2485744883f..bdb617b8d39 100644
--- a/deps/npm/man/man1/npm-stage.1
+++ b/deps/npm/man/man1/npm-stage.1
@@ -1,4 +1,4 @@
-.TH "NPM-STAGE" "1" "November 2026" "NPM@12.2.2" ""
+.TH "NPM-STAGE" "1" "November 2026" "NPM@12.2.3" ""
.SH "NAME"
\fBnpm-stage\fR - Stage packages for publishing
.SS "Synopsis"
diff --git a/deps/npm/man/man1/npm-start.1 b/deps/npm/man/man1/npm-start.1
index 95ca202bc95..c98b0c6d4d0 100644
--- a/deps/npm/man/man1/npm-start.1
+++ b/deps/npm/man/man1/npm-start.1
@@ -1,4 +1,4 @@
-.TH "NPM-START" "1" "November 2026" "NPM@12.2.2" ""
+.TH "NPM-START" "1" "November 2026" "NPM@12.2.3" ""
.SH "NAME"
\fBnpm-start\fR - Start a package
.SS "Synopsis"
diff --git a/deps/npm/man/man1/npm-stop.1 b/deps/npm/man/man1/npm-stop.1
index 1bb7818e1f5..681a4209fdc 100644
--- a/deps/npm/man/man1/npm-stop.1
+++ b/deps/npm/man/man1/npm-stop.1
@@ -1,4 +1,4 @@
-.TH "NPM-STOP" "1" "November 2026" "NPM@12.2.2" ""
+.TH "NPM-STOP" "1" "November 2026" "NPM@12.2.3" ""
.SH "NAME"
\fBnpm-stop\fR - Stop a package
.SS "Synopsis"
diff --git a/deps/npm/man/man1/npm-team.1 b/deps/npm/man/man1/npm-team.1
index 52a32be20f8..8362186067e 100644
--- a/deps/npm/man/man1/npm-team.1
+++ b/deps/npm/man/man1/npm-team.1
@@ -1,4 +1,4 @@
-.TH "NPM-TEAM" "1" "November 2026" "NPM@12.2.2" ""
+.TH "NPM-TEAM" "1" "November 2026" "NPM@12.2.3" ""
.SH "NAME"
\fBnpm-team\fR - Manage organization teams and team memberships
.SS "Synopsis"
diff --git a/deps/npm/man/man1/npm-test.1 b/deps/npm/man/man1/npm-test.1
index 5dcb59e605b..13e09089094 100644
--- a/deps/npm/man/man1/npm-test.1
+++ b/deps/npm/man/man1/npm-test.1
@@ -1,4 +1,4 @@
-.TH "NPM-TEST" "1" "November 2026" "NPM@12.2.2" ""
+.TH "NPM-TEST" "1" "November 2026" "NPM@12.2.3" ""
.SH "NAME"
\fBnpm-test\fR - Test a package
.SS "Synopsis"
diff --git a/deps/npm/man/man1/npm-token.1 b/deps/npm/man/man1/npm-token.1
index c93b80fd6f1..8aa9c57463d 100644
--- a/deps/npm/man/man1/npm-token.1
+++ b/deps/npm/man/man1/npm-token.1
@@ -1,4 +1,4 @@
-.TH "NPM-TOKEN" "1" "November 2026" "NPM@12.2.2" ""
+.TH "NPM-TOKEN" "1" "November 2026" "NPM@12.2.3" ""
.SH "NAME"
\fBnpm-token\fR - Manage your authentication tokens
.SS "Synopsis"
diff --git a/deps/npm/man/man1/npm-trust.1 b/deps/npm/man/man1/npm-trust.1
index 3db7dc8b88b..a37b1cec103 100644
--- a/deps/npm/man/man1/npm-trust.1
+++ b/deps/npm/man/man1/npm-trust.1
@@ -1,4 +1,4 @@
-.TH "NPM-TRUST" "1" "November 2026" "NPM@12.2.2" ""
+.TH "NPM-TRUST" "1" "November 2026" "NPM@12.2.3" ""
.SH "NAME"
\fBnpm-trust\fR - Manage trusted publishing relationships between packages and CI/CD providers
.SS "Synopsis"
diff --git a/deps/npm/man/man1/npm-undeprecate.1 b/deps/npm/man/man1/npm-undeprecate.1
index 4b972298687..788cc169b96 100644
--- a/deps/npm/man/man1/npm-undeprecate.1
+++ b/deps/npm/man/man1/npm-undeprecate.1
@@ -1,4 +1,4 @@
-.TH "NPM-UNDEPRECATE" "1" "November 2026" "NPM@12.2.2" ""
+.TH "NPM-UNDEPRECATE" "1" "November 2026" "NPM@12.2.3" ""
.SH "NAME"
\fBnpm-undeprecate\fR - Undeprecate a version of a package
.SS "Synopsis"
diff --git a/deps/npm/man/man1/npm-uninstall.1 b/deps/npm/man/man1/npm-uninstall.1
index d02c219f6a4..e785121fafe 100644
--- a/deps/npm/man/man1/npm-uninstall.1
+++ b/deps/npm/man/man1/npm-uninstall.1
@@ -1,4 +1,4 @@
-.TH "NPM-UNINSTALL" "1" "November 2026" "NPM@12.2.2" ""
+.TH "NPM-UNINSTALL" "1" "November 2026" "NPM@12.2.3" ""
.SH "NAME"
\fBnpm-uninstall\fR - Remove a package
.SS "Synopsis"
diff --git a/deps/npm/man/man1/npm-unpublish.1 b/deps/npm/man/man1/npm-unpublish.1
index c11c5de96e5..e41e23559fb 100644
--- a/deps/npm/man/man1/npm-unpublish.1
+++ b/deps/npm/man/man1/npm-unpublish.1
@@ -1,4 +1,4 @@
-.TH "NPM-UNPUBLISH" "1" "November 2026" "NPM@12.2.2" ""
+.TH "NPM-UNPUBLISH" "1" "November 2026" "NPM@12.2.3" ""
.SH "NAME"
\fBnpm-unpublish\fR - Remove a package from the registry
.SS "Synopsis"
diff --git a/deps/npm/man/man1/npm-update.1 b/deps/npm/man/man1/npm-update.1
index fb6a41bfb1c..e7f258b122b 100644
--- a/deps/npm/man/man1/npm-update.1
+++ b/deps/npm/man/man1/npm-update.1
@@ -1,4 +1,4 @@
-.TH "NPM-UPDATE" "1" "November 2026" "NPM@12.2.2" ""
+.TH "NPM-UPDATE" "1" "November 2026" "NPM@12.2.3" ""
.SH "NAME"
\fBnpm-update\fR - Update packages
.SS "Synopsis"
@@ -311,6 +311,8 @@ If \fBtrue\fR, turn the install-script policy from a warning into a hard error:
Dependencies explicitly denied with \fBfalse\fR in \fBallowScripts\fR are always silently skipped; this setting only affects unreviewed entries (packages with install scripts that are neither approved nor denied). \fB--ignore-scripts\fR and \fB--dangerously-allow-all-scripts\fR both override this setting.
.P
Optional dependencies that cannot be installed on the current platform or engine (a non-matching \fBos\fR, \fBcpu\fR, or \fBlibc\fR) are not flagged, because their install scripts never run.
+.P
+Installation checks skip unused entries with no package parent or incoming links. Local link targets that installation can still rebuild remain subject to this check. \fBnpm rebuild\fR and \fBnpm install-scripts ls\fR still check unused packages on disk.
.SS "\fBdangerously-allow-all-scripts\fR"
.RS 0
.IP \(bu 4
diff --git a/deps/npm/man/man1/npm-version.1 b/deps/npm/man/man1/npm-version.1
index 76ae6378184..a7e15d48013 100644
--- a/deps/npm/man/man1/npm-version.1
+++ b/deps/npm/man/man1/npm-version.1
@@ -1,4 +1,4 @@
-.TH "NPM-VERSION" "1" "November 2026" "NPM@12.2.2" ""
+.TH "NPM-VERSION" "1" "November 2026" "NPM@12.2.3" ""
.SH "NAME"
\fBnpm-version\fR - Bump a package version
.SS "Synopsis"
diff --git a/deps/npm/man/man1/npm-view.1 b/deps/npm/man/man1/npm-view.1
index 49c3895db18..5ad0e791336 100644
--- a/deps/npm/man/man1/npm-view.1
+++ b/deps/npm/man/man1/npm-view.1
@@ -1,4 +1,4 @@
-.TH "NPM-VIEW" "1" "November 2026" "NPM@12.2.2" ""
+.TH "NPM-VIEW" "1" "November 2026" "NPM@12.2.3" ""
.SH "NAME"
\fBnpm-view\fR - View registry info
.SS "Synopsis"
diff --git a/deps/npm/man/man1/npm-whoami.1 b/deps/npm/man/man1/npm-whoami.1
index 00999cc8dbd..149ee0eab23 100644
--- a/deps/npm/man/man1/npm-whoami.1
+++ b/deps/npm/man/man1/npm-whoami.1
@@ -1,4 +1,4 @@
-.TH "NPM-WHOAMI" "1" "November 2026" "NPM@12.2.2" ""
+.TH "NPM-WHOAMI" "1" "November 2026" "NPM@12.2.3" ""
.SH "NAME"
\fBnpm-whoami\fR - Display npm username
.SS "Synopsis"
diff --git a/deps/npm/man/man1/npm.1 b/deps/npm/man/man1/npm.1
index 471b53d9a73..9fbc8f7fd09 100644
--- a/deps/npm/man/man1/npm.1
+++ b/deps/npm/man/man1/npm.1
@@ -1,4 +1,4 @@
-.TH "NPM" "1" "November 2026" "NPM@12.2.2" ""
+.TH "NPM" "1" "November 2026" "NPM@12.2.3" ""
.SH "NAME"
\fBnpm\fR - javascript package manager
.SS "Synopsis"
@@ -12,7 +12,7 @@ npm
Note: This command is unaware of workspaces.
.SS "Version"
.P
-12.2.2
+12.2.3
.SS "Description"
.P
npm is the package manager for the Node JavaScript platform. It puts modules in place so that node can find them, and manages dependency conflicts intelligently.
diff --git a/deps/npm/man/man1/npx.1 b/deps/npm/man/man1/npx.1
index b578ba8b11b..3f137e15df6 100644
--- a/deps/npm/man/man1/npx.1
+++ b/deps/npm/man/man1/npx.1
@@ -1,4 +1,4 @@
-.TH "NPX" "1" "November 2026" "NPM@12.2.2" ""
+.TH "NPX" "1" "November 2026" "NPM@12.2.3" ""
.SH "NAME"
\fBnpx\fR - Run a command from a local or remote npm package
.SS "Synopsis"
diff --git a/deps/npm/man/man5/folders.5 b/deps/npm/man/man5/folders.5
index 5d4d531fa77..aa65b394cc2 100644
--- a/deps/npm/man/man5/folders.5
+++ b/deps/npm/man/man5/folders.5
@@ -1,4 +1,4 @@
-.TH "FOLDERS" "5" "November 2026" "NPM@12.2.2" ""
+.TH "FOLDERS" "5" "November 2026" "NPM@12.2.3" ""
.SH "NAME"
\fBFolders\fR - Folder structures used by npm
.SS "Description"
diff --git a/deps/npm/man/man5/install.5 b/deps/npm/man/man5/install.5
index 746f0448b74..46a008083c5 100644
--- a/deps/npm/man/man5/install.5
+++ b/deps/npm/man/man5/install.5
@@ -1,4 +1,4 @@
-.TH "INSTALL" "5" "November 2026" "NPM@12.2.2" ""
+.TH "INSTALL" "5" "November 2026" "NPM@12.2.3" ""
.SH "NAME"
\fBInstall\fR - Download and install node and npm
.SS "Description"
diff --git a/deps/npm/man/man5/npm-extension.5 b/deps/npm/man/man5/npm-extension.5
index c8db8a2645b..cbbf6971e9e 100644
--- a/deps/npm/man/man5/npm-extension.5
+++ b/deps/npm/man/man5/npm-extension.5
@@ -1,4 +1,4 @@
-.TH ".NPM-EXTENSION" "5" "November 2026" "NPM@12.2.2" ""
+.TH ".NPM-EXTENSION" "5" "November 2026" "NPM@12.2.3" ""
.SH "NAME"
\fB.npm-extension\fR - Imperative, root-owned manifest repairs
.SS "Description"
diff --git a/deps/npm/man/man5/npm-global.5 b/deps/npm/man/man5/npm-global.5
index 5d4d531fa77..aa65b394cc2 100644
--- a/deps/npm/man/man5/npm-global.5
+++ b/deps/npm/man/man5/npm-global.5
@@ -1,4 +1,4 @@
-.TH "FOLDERS" "5" "November 2026" "NPM@12.2.2" ""
+.TH "FOLDERS" "5" "November 2026" "NPM@12.2.3" ""
.SH "NAME"
\fBFolders\fR - Folder structures used by npm
.SS "Description"
diff --git a/deps/npm/man/man5/npm-json.5 b/deps/npm/man/man5/npm-json.5
index 85af518d6ed..2fb979e9139 100644
--- a/deps/npm/man/man5/npm-json.5
+++ b/deps/npm/man/man5/npm-json.5
@@ -1,4 +1,4 @@
-.TH "PACKAGE.JSON" "5" "November 2026" "NPM@12.2.2" ""
+.TH "PACKAGE.JSON" "5" "November 2026" "NPM@12.2.3" ""
.SH "NAME"
\fBpackage.json\fR - Specifics of npm's package.json handling
.SS "Description"
diff --git a/deps/npm/man/man5/npmrc.5 b/deps/npm/man/man5/npmrc.5
index 333864f013d..313cb5639cf 100644
--- a/deps/npm/man/man5/npmrc.5
+++ b/deps/npm/man/man5/npmrc.5
@@ -1,4 +1,4 @@
-.TH ".NPMRC" "5" "November 2026" "NPM@12.2.2" ""
+.TH ".NPMRC" "5" "November 2026" "NPM@12.2.3" ""
.SH "NAME"
\fB.npmrc\fR - The npm config files
.SS "Description"
diff --git a/deps/npm/man/man5/package-json.5 b/deps/npm/man/man5/package-json.5
index 85af518d6ed..2fb979e9139 100644
--- a/deps/npm/man/man5/package-json.5
+++ b/deps/npm/man/man5/package-json.5
@@ -1,4 +1,4 @@
-.TH "PACKAGE.JSON" "5" "November 2026" "NPM@12.2.2" ""
+.TH "PACKAGE.JSON" "5" "November 2026" "NPM@12.2.3" ""
.SH "NAME"
\fBpackage.json\fR - Specifics of npm's package.json handling
.SS "Description"
diff --git a/deps/npm/man/man5/package-lock-json.5 b/deps/npm/man/man5/package-lock-json.5
index 050024e3e14..f4d26a53519 100644
--- a/deps/npm/man/man5/package-lock-json.5
+++ b/deps/npm/man/man5/package-lock-json.5
@@ -1,4 +1,4 @@
-.TH "PACKAGE-LOCK.JSON" "5" "November 2026" "NPM@12.2.2" ""
+.TH "PACKAGE-LOCK.JSON" "5" "November 2026" "NPM@12.2.3" ""
.SH "NAME"
\fBpackage-lock.json\fR - A manifestation of the manifest
.SS "Description"
diff --git a/deps/npm/man/man7/config.7 b/deps/npm/man/man7/config.7
index c67a71ae67e..25c9b76e0b8 100644
--- a/deps/npm/man/man7/config.7
+++ b/deps/npm/man/man7/config.7
@@ -1,4 +1,4 @@
-.TH "CONFIG" "7" "November 2026" "NPM@12.2.2" ""
+.TH "CONFIG" "7" "November 2026" "NPM@12.2.3" ""
.SH "NAME"
\fBConfig\fR - About npm configuration
.SS "Description"
@@ -1966,6 +1966,8 @@ If \fBtrue\fR, turn the install-script policy from a warning into a hard error:
Dependencies explicitly denied with \fBfalse\fR in \fBallowScripts\fR are always silently skipped; this setting only affects unreviewed entries (packages with install scripts that are neither approved nor denied). \fB--ignore-scripts\fR and \fB--dangerously-allow-all-scripts\fR both override this setting.
.P
Optional dependencies that cannot be installed on the current platform or engine (a non-matching \fBos\fR, \fBcpu\fR, or \fBlibc\fR) are not flagged, because their install scripts never run.
+.P
+Installation checks skip unused entries with no package parent or incoming links. Local link targets that installation can still rebuild remain subject to this check. \fBnpm rebuild\fR and \fBnpm install-scripts ls\fR still check unused packages on disk.
.SS "\fBstrict-npmrc\fR"
.RS 0
.IP \(bu 4
diff --git a/deps/npm/man/man7/dependency-selectors.7 b/deps/npm/man/man7/dependency-selectors.7
index c074d387c2e..e67a6f9ce52 100644
--- a/deps/npm/man/man7/dependency-selectors.7
+++ b/deps/npm/man/man7/dependency-selectors.7
@@ -1,4 +1,4 @@
-.TH "SELECTORS" "7" "November 2026" "NPM@12.2.2" ""
+.TH "SELECTORS" "7" "November 2026" "NPM@12.2.3" ""
.SH "NAME"
\fBSelectors\fR - Dependency Selector Syntax & Querying
.SS "Description"
diff --git a/deps/npm/man/man7/developers.7 b/deps/npm/man/man7/developers.7
index d559d9c8888..540b5a82c41 100644
--- a/deps/npm/man/man7/developers.7
+++ b/deps/npm/man/man7/developers.7
@@ -1,4 +1,4 @@
-.TH "DEVELOPERS" "7" "November 2026" "NPM@12.2.2" ""
+.TH "DEVELOPERS" "7" "November 2026" "NPM@12.2.3" ""
.SH "NAME"
\fBDevelopers\fR - Developer guide
.SS "Description"
diff --git a/deps/npm/man/man7/logging.7 b/deps/npm/man/man7/logging.7
index ec1ee7e6f3a..da33fef66a0 100644
--- a/deps/npm/man/man7/logging.7
+++ b/deps/npm/man/man7/logging.7
@@ -1,4 +1,4 @@
-.TH "LOGGING" "7" "November 2026" "NPM@12.2.2" ""
+.TH "LOGGING" "7" "November 2026" "NPM@12.2.3" ""
.SH "NAME"
\fBLogging\fR - Why, What & How we Log
.SS "Description"
diff --git a/deps/npm/man/man7/orgs.7 b/deps/npm/man/man7/orgs.7
index fed16a661cf..858ef9d7add 100644
--- a/deps/npm/man/man7/orgs.7
+++ b/deps/npm/man/man7/orgs.7
@@ -1,4 +1,4 @@
-.TH "ORGANIZATIONS" "7" "November 2026" "NPM@12.2.2" ""
+.TH "ORGANIZATIONS" "7" "November 2026" "NPM@12.2.3" ""
.SH "NAME"
\fBOrganizations\fR - Working with teams & organizations
.SS "Description"
diff --git a/deps/npm/man/man7/package-spec.7 b/deps/npm/man/man7/package-spec.7
index e3dc2e778a1..5474f67a1da 100644
--- a/deps/npm/man/man7/package-spec.7
+++ b/deps/npm/man/man7/package-spec.7
@@ -1,4 +1,4 @@
-.TH "SPEC" "7" "November 2026" "NPM@12.2.2" ""
+.TH "SPEC" "7" "November 2026" "NPM@12.2.3" ""
.SH "NAME"
\fBspec\fR - Package name specifier
.SS "Description"
diff --git a/deps/npm/man/man7/registry.7 b/deps/npm/man/man7/registry.7
index 63a92998e30..a4655281691 100644
--- a/deps/npm/man/man7/registry.7
+++ b/deps/npm/man/man7/registry.7
@@ -1,4 +1,4 @@
-.TH "REGISTRY" "7" "November 2026" "NPM@12.2.2" ""
+.TH "REGISTRY" "7" "November 2026" "NPM@12.2.3" ""
.SH "NAME"
\fBRegistry\fR - The JavaScript Package Registry
.SS "Description"
diff --git a/deps/npm/man/man7/removal.7 b/deps/npm/man/man7/removal.7
index 15f712cf886..199e6538f55 100644
--- a/deps/npm/man/man7/removal.7
+++ b/deps/npm/man/man7/removal.7
@@ -1,4 +1,4 @@
-.TH "REMOVAL" "7" "November 2026" "NPM@12.2.2" ""
+.TH "REMOVAL" "7" "November 2026" "NPM@12.2.3" ""
.SH "NAME"
\fBRemoval\fR - Cleaning the slate
.SS "Synopsis"
diff --git a/deps/npm/man/man7/scope.7 b/deps/npm/man/man7/scope.7
index 222a2057d82..cbd4de516a4 100644
--- a/deps/npm/man/man7/scope.7
+++ b/deps/npm/man/man7/scope.7
@@ -1,4 +1,4 @@
-.TH "SCOPE" "7" "November 2026" "NPM@12.2.2" ""
+.TH "SCOPE" "7" "November 2026" "NPM@12.2.3" ""
.SH "NAME"
\fBScope\fR - Scoped packages
.SS "Description"
diff --git a/deps/npm/man/man7/scripts.7 b/deps/npm/man/man7/scripts.7
index 22825120fef..9ee1a348a29 100644
--- a/deps/npm/man/man7/scripts.7
+++ b/deps/npm/man/man7/scripts.7
@@ -1,4 +1,4 @@
-.TH "SCRIPTS" "7" "November 2026" "NPM@12.2.2" ""
+.TH "SCRIPTS" "7" "November 2026" "NPM@12.2.3" ""
.SH "NAME"
\fBScripts\fR - How npm handles the "scripts" field
.SS "Description"
diff --git a/deps/npm/man/man7/workspaces.7 b/deps/npm/man/man7/workspaces.7
index 4f34d4ffb3d..3dbbf14834a 100644
--- a/deps/npm/man/man7/workspaces.7
+++ b/deps/npm/man/man7/workspaces.7
@@ -1,4 +1,4 @@
-.TH "WORKSPACES" "7" "November 2026" "NPM@12.2.2" ""
+.TH "WORKSPACES" "7" "November 2026" "NPM@12.2.3" ""
.SH "NAME"
\fBWorkspaces\fR - Working with workspaces
.SS "Description"
diff --git a/deps/npm/node_modules/@npmcli/arborist/lib/arborist/isolated-reifier.js b/deps/npm/node_modules/@npmcli/arborist/lib/arborist/isolated-reifier.js
index 784c389c437..13415b07fc3 100644
--- a/deps/npm/node_modules/@npmcli/arborist/lib/arborist/isolated-reifier.js
+++ b/deps/npm/node_modules/@npmcli/arborist/lib/arborist/isolated-reifier.js
@@ -1,5 +1,6 @@
const { join } = require('node:path')
const { depth } = require('treeverse')
+const { getPaths: getBinPaths } = require('bin-links')
const crypto = require('node:crypto')
const { IsolatedNode, IsolatedLink } = require('../isolated-classes.js')
const nameFromFolder = require('@npmcli/name-from-folder')
@@ -435,11 +436,12 @@ module.exports = cls => class IsolatedReifier extends cls {
return
}
- if (dep.package.bin) {
- for (const bn in dep.package.bin) {
- target.binPaths.push(join(dep.root.localPath, nmFolder, '.bin', bn))
- }
- }
+ target.binPaths.push(...getBinPaths({
+ pkg: dep.package,
+ path: join(dep.root.localPath, nmFolder, dep.name),
+ global: false,
+ top: false,
+ }))
const pkg = {
_id: dep.package._id,
diff --git a/deps/npm/node_modules/@npmcli/arborist/lib/case-insensitive-map.js b/deps/npm/node_modules/@npmcli/arborist/lib/case-insensitive-map.js
index afc6afbe0f9..63badcecd86 100644
--- a/deps/npm/node_modules/@npmcli/arborist/lib/case-insensitive-map.js
+++ b/deps/npm/node_modules/@npmcli/arborist/lib/case-insensitive-map.js
@@ -2,6 +2,9 @@
// are case-insensitive and unicode-normalizing, so we need to treat
// node.children.get('FOO') and node.children.get('foo') as the same thing.
+// ASCII keys without uppercase letters are already normalized.
+const needsNormalization = /[A-Z\u0080-\uffff]/
+
module.exports = class CIMap extends Map {
#keys = new Map()
@@ -13,7 +16,7 @@ module.exports = class CIMap extends Map {
}
#normKey (key) {
- if (typeof key !== 'string') {
+ if (typeof key !== 'string' || !needsNormalization.test(key)) {
return key
}
return key.normalize('NFKD').toLowerCase()
diff --git a/deps/npm/node_modules/@npmcli/arborist/lib/edge.js b/deps/npm/node_modules/@npmcli/arborist/lib/edge.js
index 1ed2446c809..b563e8ca4c3 100644
--- a/deps/npm/node_modules/@npmcli/arborist/lib/edge.js
+++ b/deps/npm/node_modules/@npmcli/arborist/lib/edge.js
@@ -108,16 +108,16 @@ class Edge {
return false
}
+ // If there's no override we just use the spec.
+ if (!this.overrides?.keySpec) {
+ return depValid(node, this.spec, this.#accept, this.#from)
+ }
+
// NOTE: this condition means we explicitly do not support overriding
// bundled dependencies
if (node.inDepBundle) {
return depValid(node, this.rawSpec, this.#accept, this.#from)
}
-
- // If there's no override we just use the spec.
- if (!this.overrides?.keySpec) {
- return depValid(node, this.spec, this.#accept, this.#from)
- }
// There's some override. If the target node satisfies the overriding spec
// then it's okay.
if (depValid(node, this.spec, this.#accept, this.#from)) {
diff --git a/deps/npm/node_modules/@npmcli/arborist/lib/node.js b/deps/npm/node_modules/@npmcli/arborist/lib/node.js
index 13370a50ab4..4f555f2ef93 100644
--- a/deps/npm/node_modules/@npmcli/arborist/lib/node.js
+++ b/deps/npm/node_modules/@npmcli/arborist/lib/node.js
@@ -523,20 +523,25 @@ class Node {
)
}
- getBundler (path = []) {
+ getBundler (seen = new Set()) {
+ const isArray = Array.isArray(seen)
// made a cycle, definitely not bundled!
- if (path.includes(this)) {
+ if (isArray ? seen.includes(this) : seen.has(this)) {
return null
}
- path.push(this)
+ if (isArray) {
+ seen.push(this)
+ } else {
+ seen.add(this)
+ }
const parent = this[_parent]
if (!parent) {
return null
}
- const pBundler = parent.getBundler(path)
+ const pBundler = parent.getBundler(seen)
if (pBundler) {
return pBundler
}
@@ -553,7 +558,7 @@ class Node {
// then they are not bundled. Ie, installing a package with
// unmet bundled deps will not cause your deps to be bundled.
for (const edge of this.edgesIn) {
- const eBundler = edge.from.getBundler(path)
+ const eBundler = edge.from.getBundler(seen)
if (!eBundler) {
continue
}
@@ -1505,6 +1510,11 @@ class Node {
}
[_reloadNamedEdges] (name, rootLoc = this.location) {
+ if (!this.edgesOut.size && !this.children.size && !this.fsChildren.size) {
+ // With no outgoing edges or descendants, there is nothing to refresh or traverse.
+ return
+ }
+
const edge = this.edgesOut.get(name)
// if we don't have an edge, do nothing, but keep descending
const rootLocResolved = edge && edge.to &&
diff --git a/deps/npm/node_modules/@npmcli/arborist/lib/unreviewed-scripts.js b/deps/npm/node_modules/@npmcli/arborist/lib/unreviewed-scripts.js
index f7bed387845..e30a4540834 100644
--- a/deps/npm/node_modules/@npmcli/arborist/lib/unreviewed-scripts.js
+++ b/deps/npm/node_modules/@npmcli/arborist/lib/unreviewed-scripts.js
@@ -18,6 +18,7 @@ const collectUnreviewedScripts = async ({
ignoreScripts = false,
dangerouslyAllowAllScripts = false,
includeWhenIgnored = false,
+ skipExtraneous = false,
} = {}) => {
// With ignore-scripts set, no scripts run, so execution callers bail out
// here. approve/deny pass includeWhenIgnored so they keep listing
@@ -57,6 +58,10 @@ const collectUnreviewedScripts = async ({
// must not be flagged (npm/cli#9562).
continue
}
+ if (skipExtraneous && node.extraneous && !node.parent && node.linksIn?.size === 0) {
+ // Reify never installs disconnected extraneous nodes, so their scripts cannot run.
+ continue
+ }
const verdict = isScriptAllowed(node, resolvedPolicy)
if (verdict === true || verdict === false) {
diff --git a/deps/npm/node_modules/@npmcli/arborist/package.json b/deps/npm/node_modules/@npmcli/arborist/package.json
index de1c6c97369..74efe09cb86 100644
--- a/deps/npm/node_modules/@npmcli/arborist/package.json
+++ b/deps/npm/node_modules/@npmcli/arborist/package.json
@@ -1,6 +1,6 @@
{
"name": "@npmcli/arborist",
- "version": "10.0.4",
+ "version": "10.0.5",
"description": "Manage node_modules trees",
"dependencies": {
"@gar/promise-retry": "^1.0.0",
diff --git a/deps/npm/node_modules/@npmcli/config/lib/definitions/definitions.js b/deps/npm/node_modules/@npmcli/config/lib/definitions/definitions.js
index bd5c8236393..08b30b232b3 100644
--- a/deps/npm/node_modules/@npmcli/config/lib/definitions/definitions.js
+++ b/deps/npm/node_modules/@npmcli/config/lib/definitions/definitions.js
@@ -2512,6 +2512,11 @@ const definitions = {
Optional dependencies that cannot be installed on the current platform
or engine (a non-matching \`os\`, \`cpu\`, or \`libc\`) are not flagged,
because their install scripts never run.
+
+ Installation checks skip unused entries with no package parent or
+ incoming links. Local link targets that installation can still rebuild
+ remain subject to this check. \`npm rebuild\` and \`npm install-scripts ls\`
+ still check unused packages on disk.
`,
flatten,
}),
diff --git a/deps/npm/node_modules/@npmcli/config/package.json b/deps/npm/node_modules/@npmcli/config/package.json
index 06f9020a7e6..fdc1924fe1a 100644
--- a/deps/npm/node_modules/@npmcli/config/package.json
+++ b/deps/npm/node_modules/@npmcli/config/package.json
@@ -1,6 +1,6 @@
{
"name": "@npmcli/config",
- "version": "11.2.0",
+ "version": "11.2.1",
"files": [
"bin/",
"lib/"
diff --git a/deps/npm/node_modules/bin-links/node_modules/read-cmd-shim/lib/index.js b/deps/npm/node_modules/bin-links/node_modules/read-cmd-shim/lib/index.js
index dafc874463f..e0ad5f13b20 100644
--- a/deps/npm/node_modules/bin-links/node_modules/read-cmd-shim/lib/index.js
+++ b/deps/npm/node_modules/bin-links/node_modules/read-cmd-shim/lib/index.js
@@ -24,7 +24,7 @@ const extractPathFromCmd = cmdshimContents => {
}
const extractPathFromCygwin = cmdshimContents => {
- const matches = cmdshimContents.match(/"[$]basedir[/]([^"]+?)"\s+"[$]@"/)
+ const matches = cmdshimContents.match(/"[$]basedir(?:_win)?[/]([^"]+?)"\s+"[$]@"/)
return matches && matches[1]
}
diff --git a/deps/npm/node_modules/bin-links/node_modules/read-cmd-shim/package.json b/deps/npm/node_modules/bin-links/node_modules/read-cmd-shim/package.json
index cfd11bfe148..213c0b16b72 100644
--- a/deps/npm/node_modules/bin-links/node_modules/read-cmd-shim/package.json
+++ b/deps/npm/node_modules/bin-links/node_modules/read-cmd-shim/package.json
@@ -1,12 +1,12 @@
{
"name": "read-cmd-shim",
- "version": "7.0.0",
+ "version": "7.0.1",
"description": "Figure out what a cmd-shim is pointing at. This acts as the equivalent of fs.readlink.",
"main": "lib/index.js",
"devDependencies": {
- "@npmcli/eslint-config": "^6.0.0",
- "@npmcli/template-oss": "5.0.0",
- "cmd-shim": "^8.0.0"
+ "@npmcli/eslint-config": "^7.0.0",
+ "@npmcli/template-oss": "5.1.1",
+ "cmd-shim": "^9.0.0"
},
"scripts": {
"test": "node --test './test/**/*.js'",
@@ -36,7 +36,7 @@
},
"templateOSS": {
"//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
- "version": "5.0.0",
+ "version": "5.1.1",
"publish": true,
"testRunner": "node:test",
"latestCiVersion": 24
diff --git a/deps/npm/node_modules/libnpmdiff/package.json b/deps/npm/node_modules/libnpmdiff/package.json
index 8f6c89c9bd5..21b31e10290 100644
--- a/deps/npm/node_modules/libnpmdiff/package.json
+++ b/deps/npm/node_modules/libnpmdiff/package.json
@@ -1,6 +1,6 @@
{
"name": "libnpmdiff",
- "version": "9.0.4",
+ "version": "9.0.5",
"description": "The registry diff",
"repository": {
"type": "git",
@@ -47,7 +47,7 @@
"tap": "^16.3.8"
},
"dependencies": {
- "@npmcli/arborist": "^10.0.4",
+ "@npmcli/arborist": "^10.0.5",
"@npmcli/installed-package-contents": "^5.0.0",
"binary-extensions": "^3.0.0",
"diff": "^8.0.2",
diff --git a/deps/npm/node_modules/libnpmexec/lib/index.js b/deps/npm/node_modules/libnpmexec/lib/index.js
index 56dcf7c7369..ac63f5ba770 100644
--- a/deps/npm/node_modules/libnpmexec/lib/index.js
+++ b/deps/npm/node_modules/libnpmexec/lib/index.js
@@ -263,6 +263,10 @@ const exec = async (opts) => {
await mkdir(installDir, { recursive: true })
const npxArb = new Arborist({
...flatOptions,
+ // a missing package must actually be installed to the npx cache, so it can be run,
+ // even when these are set: eg, a lifecycle script inherits npm_config_dry_run from `npm publish --dry-run`
+ dryRun: false,
+ packageLockOnly: false,
path: installDir,
})
const lockPath = join(installDir, 'concurrency.lock')
diff --git a/deps/npm/node_modules/libnpmexec/lib/strict-allow-scripts-preflight.js b/deps/npm/node_modules/libnpmexec/lib/strict-allow-scripts-preflight.js
index 579fd0c0fdd..383521fab8f 100644
--- a/deps/npm/node_modules/libnpmexec/lib/strict-allow-scripts-preflight.js
+++ b/deps/npm/node_modules/libnpmexec/lib/strict-allow-scripts-preflight.js
@@ -24,6 +24,7 @@ const strictAllowScriptsPreflight = async (arb, opts) => {
policy: opts.allowScripts || null,
ignoreScripts: opts.ignoreScripts,
dangerouslyAllowAllScripts: opts.dangerouslyAllowAllScripts,
+ skipExtraneous: true,
})
if (unreviewed.length === 0) {
diff --git a/deps/npm/node_modules/libnpmexec/package.json b/deps/npm/node_modules/libnpmexec/package.json
index 0479de86500..3e8bb37447b 100644
--- a/deps/npm/node_modules/libnpmexec/package.json
+++ b/deps/npm/node_modules/libnpmexec/package.json
@@ -1,6 +1,6 @@
{
"name": "libnpmexec",
- "version": "11.0.5",
+ "version": "11.0.6",
"files": [
"bin/",
"lib/"
@@ -65,7 +65,7 @@
},
"dependencies": {
"@gar/promise-retry": "^1.0.0",
- "@npmcli/arborist": "^10.0.4",
+ "@npmcli/arborist": "^10.0.5",
"@npmcli/package-json": "^8.0.0",
"@npmcli/run-script": "^11.0.0",
"ci-info": "^4.0.0",
diff --git a/deps/npm/node_modules/libnpmfund/package.json b/deps/npm/node_modules/libnpmfund/package.json
index 1019a8a788a..b9af7edc6d6 100644
--- a/deps/npm/node_modules/libnpmfund/package.json
+++ b/deps/npm/node_modules/libnpmfund/package.json
@@ -1,6 +1,6 @@
{
"name": "libnpmfund",
- "version": "8.0.4",
+ "version": "8.0.5",
"main": "lib/index.js",
"files": [
"bin/",
@@ -46,7 +46,7 @@
"tap": "^16.3.8"
},
"dependencies": {
- "@npmcli/arborist": "^10.0.4"
+ "@npmcli/arborist": "^10.0.5"
},
"engines": {
"node": "^22.22.2 || ^24.15.0 || >=26.0.0"
diff --git a/deps/npm/node_modules/libnpmpack/package.json b/deps/npm/node_modules/libnpmpack/package.json
index 5a33b697646..2c5452b85da 100644
--- a/deps/npm/node_modules/libnpmpack/package.json
+++ b/deps/npm/node_modules/libnpmpack/package.json
@@ -1,6 +1,6 @@
{
"name": "libnpmpack",
- "version": "10.0.4",
+ "version": "10.0.5",
"description": "Programmatic API for the bits behind npm pack",
"author": "GitHub Inc.",
"main": "lib/index.js",
@@ -37,7 +37,7 @@
"bugs": "https://github.com/npm/libnpmpack/issues",
"homepage": "https://npmjs.com/package/libnpmpack",
"dependencies": {
- "@npmcli/arborist": "^10.0.4",
+ "@npmcli/arborist": "^10.0.5",
"@npmcli/run-script": "^11.0.0",
"npm-package-arg": "^14.0.0",
"pacote": "^22.0.0"
diff --git a/deps/npm/package.json b/deps/npm/package.json
index b1e37e484a1..cc70defc03a 100644
--- a/deps/npm/package.json
+++ b/deps/npm/package.json
@@ -1,5 +1,5 @@
{
- "version": "12.2.2",
+ "version": "12.2.3",
"name": "npm",
"description": "a package manager for JavaScript",
"workspaces": [
@@ -48,8 +48,8 @@
},
"dependencies": {
"@isaacs/string-locale-compare": "^1.1.0",
- "@npmcli/arborist": "^10.0.4",
- "@npmcli/config": "^11.2.0",
+ "@npmcli/arborist": "^10.0.5",
+ "@npmcli/config": "^11.2.1",
"@npmcli/fs": "^6.0.0",
"@npmcli/git": "^8.0.0",
"@npmcli/map-workspaces": "^6.0.0",
@@ -76,11 +76,11 @@
"is-cidr": "^7.0.0",
"json-parse-even-better-errors": "^6.0.0",
"libnpmaccess": "^11.0.0",
- "libnpmdiff": "^9.0.4",
- "libnpmexec": "^11.0.5",
- "libnpmfund": "^8.0.4",
+ "libnpmdiff": "^9.0.5",
+ "libnpmexec": "^11.0.6",
+ "libnpmfund": "^8.0.5",
"libnpmorg": "^9.0.0",
- "libnpmpack": "^10.0.4",
+ "libnpmpack": "^10.0.5",
"libnpmpublish": "^12.0.1",
"libnpmsearch": "^10.0.0",
"libnpmteam": "^9.0.0",
diff --git a/deps/npm/tap-snapshots/test/lib/docs.js.test.cjs b/deps/npm/tap-snapshots/test/lib/docs.js.test.cjs
index 6e34b0832ea..cb191c64776 100644
--- a/deps/npm/tap-snapshots/test/lib/docs.js.test.cjs
+++ b/deps/npm/tap-snapshots/test/lib/docs.js.test.cjs
@@ -2091,6 +2091,11 @@ Optional dependencies that cannot be installed on the current platform or
engine (a non-matching \`os\`, \`cpu\`, or \`libc\`) are not flagged, because
their install scripts never run.
+Installation checks skip unused entries with no package parent or incoming
+links. Local link targets that installation can still rebuild remain subject
+to this check. \`npm rebuild\` and \`npm install-scripts ls\` still check unused
+packages on disk.
+
#### \`strict-npmrc\`
diff --git a/deps/npm/test/bin/windows-shims.js b/deps/npm/test/bin/windows-shims.js
index d785fbe7b1c..8dbdf6359bc 100644
--- a/deps/npm/test/bin/windows-shims.js
+++ b/deps/npm/test/bin/windows-shims.js
@@ -177,7 +177,9 @@ t.test('run shims', t => {
chmodSync(join(path, shim), 0o755)
}
- const { ProgramFiles = '/', SystemRoot = '/', NYC_CONFIG, WINDOWS_SHIMS_TEST } = process.env
+ const {
+ ProgramFiles = '/', SystemRoot = '/', NYC_CONFIG, WINDOWS_SHIMS_TEST, CYGWIN_ROOT,
+ } = process.env
const skipDefault = WINDOWS_SHIMS_TEST || process.platform === 'win32'
? null : 'test not relevant on platform'
@@ -188,13 +190,17 @@ t.test('run shims', t => {
git: join(ProgramFiles, 'Git', 'bin', 'bash.exe'),
'user git': join(ProgramFiles, 'Git', 'usr', 'bin', 'bash.exe'),
wsl: join(SystemRoot, 'System32', 'bash.exe'),
- cygwin: resolve(SystemRoot, '/', 'cygwin64', 'bin', 'bash.exe'),
+ cygwin: CYGWIN_ROOT && join(CYGWIN_ROOT, 'bin', 'bash.exe'),
}).map(([name, cmd]) => {
let match = {}
const skip = { reason: skipDefault, fail: WINDOWS_SHIMS_TEST }
- const isBash = cmd.endsWith('bash.exe')
+ const isBash = name === 'cygwin' || cmd.endsWith('bash.exe')
const testName = `${name} ${isBash ? 'bash' : ''}`.trim()
+ if (!skip.reason && name === 'cygwin' && !CYGWIN_ROOT) {
+ skip.reason = 'CYGWIN_ROOT is not set'
+ }
+
if (!skip.reason) {
if (isBash) {
try {
diff --git a/deps/npm/test/fixtures/allow-scripts-orphan.js b/deps/npm/test/fixtures/allow-scripts-orphan.js
new file mode 100644
index 00000000000..9276c573f4e
--- /dev/null
+++ b/deps/npm/test/fixtures/allow-scripts-orphan.js
@@ -0,0 +1,32 @@
+const { workspaceMock } = require('./mock-npm.js')
+
+module.exports = (t, { workspace = true, allowScripts, requiredScripts = false } = {}) => {
+ const fixture = workspaceMock(t, {
+ workspaces: { app: { 'abbrev@1.0.0': {} } },
+ })
+ const pkg = JSON.parse(fixture['package.json'])
+ const lock = JSON.parse(fixture['package-lock.json'])
+
+ if (!workspace) {
+ delete pkg.workspaces
+ pkg.dependencies = { app: 'file:app' }
+ lock.packages[''] = { ...pkg }
+ }
+ pkg.allowScripts = allowScripts
+
+ // The missing intermediate directory leaves this orphan in the ideal-tree inventory.
+ lock.packages['app/node_modules/abbrev/node_modules/orphan'] = {
+ version: '1.0.0',
+ resolved: 'https://registry.npmjs.org/orphan/-/orphan-1.0.0.tgz',
+ hasInstallScript: true,
+ extraneous: true,
+ }
+ if (requiredScripts) {
+ lock.packages['node_modules/abbrev'].hasInstallScript = true
+ }
+
+ delete fixture.node_modules
+ fixture['package.json'] = JSON.stringify(pkg)
+ fixture['package-lock.json'] = JSON.stringify(lock)
+ return fixture
+}
diff --git a/deps/npm/test/lib/commands/ci.js b/deps/npm/test/lib/commands/ci.js
index a90ca4b0cff..53d49fbb9e8 100644
--- a/deps/npm/test/lib/commands/ci.js
+++ b/deps/npm/test/lib/commands/ci.js
@@ -6,6 +6,8 @@ const {
loadNpmWithRegistry: loadMockNpm,
workspaceMock,
} = require('../../fixtures/mock-npm')
+const orphanFixture = require('../../fixtures/allow-scripts-orphan.js')
+const tspawk = require('../../fixtures/tspawk.js')
// t.cleanSnapshot = str => str.replace(/ in [0-9ms]+/g, ' in {TIME}')
@@ -413,6 +415,69 @@ t.test('should throw error when ideal inventory mismatches virtual', async t =>
t.equal(fs.existsSync(nmTestFile), true, 'does not remove node_modules')
})
+t.test('ci with lockfile-only orphans', async t => {
+ tspawk(t)
+ const testOrphan = async (t, {
+ workspace = true,
+ allowScripts,
+ strict = true,
+ json = false,
+ } = {}) => {
+ const prefixDir = orphanFixture(t, { workspace, allowScripts })
+ const { npm, registry, assert, logs, clearOutput, joinedOutput } = await loadMockNpm(t, {
+ config: { audit: false, fund: false, 'strict-allow-scripts': strict, json },
+ prefixDir,
+ })
+ const manifest = registry.manifest({ name: 'abbrev' })
+ await registry.tarball({
+ manifest: manifest.versions['1.0.0'],
+ tarball: path.join(npm.prefix, 'tarballs/abbrev@1.0.0'),
+ })
+
+ await npm.exec('ci', [])
+
+ assert.packageInstalled('node_modules/abbrev@1.0.0')
+ assert.fileShouldNotExist('app/node_modules/abbrev/node_modules/orphan')
+ t.equal(
+ fs.readFileSync(path.join(npm.prefix, 'package-lock.json'), 'utf8'),
+ prefixDir['package-lock.json'],
+ 'does not change the lockfile'
+ )
+ t.strictSame(logs.warn.byTitle('install-scripts'), [], 'no orphan warning')
+ if (json) {
+ t.notOk(Object.hasOwn(JSON.parse(joinedOutput()), 'unreviewedScripts'), 'no orphan entry')
+ } else {
+ clearOutput()
+ await npm.exec('install-scripts', ['ls'])
+ t.match(joinedOutput(), /No packages with unreviewed install scripts/)
+ }
+ }
+
+ for (const workspace of [true, false]) {
+ for (const allowScripts of [undefined, { orphan: false }]) {
+ const source = workspace ? 'workspace' : 'file link'
+ const policy = allowScripts ? 'denied' : 'unreviewed'
+ for (const strict of [false, true]) {
+ await t.test(`${source}, ${policy} orphan, strict=${strict}`,
+ t => testOrphan(t, { workspace, allowScripts, strict }))
+ }
+ }
+ }
+
+ await t.test('JSON excludes the orphan', t => testOrphan(t, { json: true }))
+
+ await t.test('still rejects a required unreviewed package', async t => {
+ const { npm } = await loadMockNpm(t, {
+ config: { audit: false, 'strict-allow-scripts': true },
+ prefixDir: orphanFixture(t, { requiredScripts: true }),
+ })
+ await t.rejects(npm.exec('ci', []), {
+ code: 'ESTRICTALLOWSCRIPTS',
+ message: /1 package\(s\) have install scripts not covered by allowScripts:\n {2}abbrev@1\.0\.0/,
+ })
+ })
+})
+
t.test('should remove dirty node_modules with unhoisted workspace module', async t => {
const { npm, registry, assert } = await loadMockNpm(t, {
prefixDir: workspaceMock(t, {
diff --git a/deps/npm/test/lib/commands/exec.js b/deps/npm/test/lib/commands/exec.js
index 87422d1519a..7abd17e31a8 100644
--- a/deps/npm/test/lib/commands/exec.js
+++ b/deps/npm/test/lib/commands/exec.js
@@ -52,6 +52,42 @@ t.test('registry package', async t => {
t.ok(exists.isFile(), 'bin ran, creating file')
})
+t.test('registry package with dry-run set', async t => {
+ const registry = new MockRegistry({
+ tap: t,
+ registry: 'https://registry.npmjs.org/',
+ })
+
+ const manifest = registry.manifest({ name: '@npmcli/npx-dry-run-test' })
+ manifest.versions['1.0.0'].bin = { 'npx-dry-run-test': 'index.js' }
+
+ const { npm } = await loadMockNpm(t, {
+ config: {
+ audit: false,
+ yes: true,
+ 'dry-run': true,
+ },
+ prefixDir: {
+ 'npm-exec-test': {
+ 'package.json': JSON.stringify(manifest),
+ 'index.js': `#!/usr/bin/env node
+ require('fs').writeFileSync('npm-exec-test-success', '')`,
+ },
+ },
+ })
+
+ await registry.package({
+ times: 2,
+ manifest,
+ tarballs: {
+ '1.0.0': path.join(npm.prefix, 'npm-exec-test'),
+ } })
+
+ await npm.exec('exec', ['@npmcli/npx-dry-run-test'])
+ const exists = await fs.stat(path.join(npm.prefix, 'npm-exec-test-success'))
+ t.ok(exists.isFile(), 'package was installed and bin ran, creating file')
+})
+
t.test('--prefix', async t => {
const registry = new MockRegistry({
tap: t,
diff --git a/deps/npm/test/lib/commands/install-scripts.js b/deps/npm/test/lib/commands/install-scripts.js
index fd7051c7e44..9a7c2059144 100644
--- a/deps/npm/test/lib/commands/install-scripts.js
+++ b/deps/npm/test/lib/commands/install-scripts.js
@@ -8,11 +8,17 @@ const mockNpm = async (t, opts = {}) => {
return _mockNpm(t, opts)
}
-const setupProject = ({ allowScripts, withScripts = ['canvas'], noScripts = [] } = {}) => {
+const setupProject = ({
+ allowScripts,
+ withScripts = ['canvas'],
+ noScripts = [],
+ extraneous = false,
+} = {}) => {
const pkg = {
name: 'host',
version: '1.0.0',
- dependencies: Object.fromEntries([...withScripts, ...noScripts].map((n) => [n, '*'])),
+ dependencies: extraneous ? {}
+ : Object.fromEntries([...withScripts, ...noScripts].map((n) => [n, '*'])),
}
if (allowScripts !== undefined) {
pkg.allowScripts = allowScripts
@@ -140,6 +146,29 @@ t.test('install-scripts ls lists unreviewed packages', async t => {
t.match(out, /sharp@1\.0\.0/)
})
+t.test('install-scripts ls lists extraneous packages on disk', async t => {
+ for (const json of [false, true]) {
+ await t.test(json ? 'json' : 'text', async t => {
+ const { npm, joinedOutput } = await mockNpm(t, {
+ prefixDir: setupProject({ extraneous: true }),
+ config: { json },
+ })
+ await npm.exec('install-scripts', ['ls'])
+ if (json) {
+ t.strictSame(JSON.parse(joinedOutput()), {
+ allowScripts: [{
+ name: 'canvas',
+ changes: [{ key: 'canvas@1.0.0', change: 'pending' }],
+ }],
+ })
+ } else {
+ t.match(joinedOutput(), /1 package has install scripts blocked/)
+ t.match(joinedOutput(), /canvas@1\.0\.0/)
+ }
+ })
+ }
+})
+
t.test('install-scripts ls with no unreviewed says so', async t => {
const { npm, joinedOutput } = await mockNpm(t, {
prefixDir: setupProject({ allowScripts: { canvas: true }, withScripts: ['canvas'] }),
diff --git a/deps/npm/test/lib/commands/install.js b/deps/npm/test/lib/commands/install.js
index 3961b7f02e0..f1d6a21efcd 100644
--- a/deps/npm/test/lib/commands/install.js
+++ b/deps/npm/test/lib/commands/install.js
@@ -16,6 +16,7 @@ const {
loadNpmWithRegistry: loadMockNpm,
workspaceMock,
} = require('../../fixtures/mock-npm')
+const orphanFixture = require('../../fixtures/allow-scripts-orphan.js')
// tspawk calls preventUnmatched which assures that no scripts run if we don't mock any
const spawk = tspawk(t)
@@ -597,6 +598,132 @@ t.test('completion', async t => {
})
})
+t.test('install with an extraneous local link', async t => {
+ const setup = (t, config = {}) => loadMockNpm(t, {
+ config: { audit: false, fund: false, 'package-lock': false, ...config },
+ prefixDir: {
+ 'package.json': JSON.stringify({ name: 'host', version: '1.0.0' }),
+ foo: {
+ 'package.json': JSON.stringify({
+ name: 'foo',
+ version: '1.0.0',
+ scripts: { install: 'echo linked-install' },
+ }),
+ },
+ node_modules: { foo: t.fixture('symlink', '../foo') },
+ },
+ })
+
+ await t.test('strict mode rejects a retained link target', async t => {
+ const { npm, assert } = await setup(t, { 'strict-allow-scripts': true })
+ await t.rejects(npm.exec('install', []), {
+ code: 'ESTRICTALLOWSCRIPTS',
+ message: /foo@1\.0\.0/,
+ })
+ assert.fileShouldExist('node_modules/foo/package.json')
+ })
+
+ await t.test('normal mode keeps the blocked-script warning', async t => {
+ const { npm, logs } = await setup(t)
+ await npm.exec('install', [])
+ const warnings = logs.warn.byTitle('install-scripts').join('\n')
+ t.match(warnings, /1 package had install scripts blocked/)
+ t.match(warnings, /foo@1\.0\.0/)
+ })
+
+ await t.test('JSON keeps the blocked-script entry', async t => {
+ const { npm, joinedOutput } = await setup(t, { json: true })
+ await npm.exec('install', [])
+ t.strictSame(JSON.parse(joinedOutput()).unreviewedScripts, [{
+ name: 'foo',
+ version: '1.0.0',
+ path: path.join(npm.prefix, 'foo'),
+ scripts: { install: 'echo linked-install' },
+ }])
+ })
+
+ await t.test('the bypass still rebuilds the retained link', async t => {
+ const { npm } = await setup(t, {
+ 'strict-allow-scripts': true,
+ 'dangerously-allow-all-scripts': true,
+ })
+ let calls = 0
+ spawk.spawn(/.*/, args => {
+ calls++
+ return args.includes('echo linked-install')
+ })
+ await npm.exec('install', [])
+ t.equal(calls, 1, 'ran the linked package install script')
+ })
+
+ await t.test('pruning the link does not reject or warn about its detached target', async t => {
+ const { npm, logs, assert } = await setup(t, {
+ 'strict-allow-scripts': true,
+ 'package-lock': true,
+ })
+ await npm.exec('install', [])
+ assert.fileShouldNotExist('node_modules/foo')
+ assert.fileShouldExist('foo/package.json')
+ t.strictSame(logs.warn.byTitle('install-scripts'), [])
+ })
+})
+
+t.test('install with lockfile-only orphans', async t => {
+ const testOrphan = async (t, {
+ workspace = true,
+ allowScripts,
+ strict = true,
+ json = false,
+ } = {}) => {
+ const { npm, registry, assert, logs, clearOutput, joinedOutput } = await loadMockNpm(t, {
+ config: { audit: false, fund: false, 'strict-allow-scripts': strict, json },
+ prefixDir: orphanFixture(t, { workspace, allowScripts }),
+ })
+ const manifest = registry.manifest({ name: 'abbrev' })
+ await registry.tarball({
+ manifest: manifest.versions['1.0.0'],
+ tarball: path.join(npm.prefix, 'tarballs/abbrev@1.0.0'),
+ })
+
+ await npm.exec('install', [])
+
+ assert.packageInstalled('node_modules/abbrev@1.0.0')
+ assert.fileShouldNotExist('app/node_modules/abbrev/node_modules/orphan')
+ t.strictSame(logs.warn.byTitle('install-scripts'), [], 'no orphan warning')
+ if (json) {
+ t.notOk(Object.hasOwn(JSON.parse(joinedOutput()), 'unreviewedScripts'), 'no orphan entry')
+ } else {
+ clearOutput()
+ await npm.exec('install-scripts', ['ls'])
+ t.match(joinedOutput(), /No packages with unreviewed install scripts/)
+ }
+ }
+
+ for (const workspace of [true, false]) {
+ for (const allowScripts of [undefined, { orphan: false }]) {
+ const source = workspace ? 'workspace' : 'file link'
+ const policy = allowScripts ? 'denied' : 'unreviewed'
+ for (const strict of [false, true]) {
+ await t.test(`${source}, ${policy} orphan, strict=${strict}`,
+ t => testOrphan(t, { workspace, allowScripts, strict }))
+ }
+ }
+ }
+
+ await t.test('JSON excludes the orphan', t => testOrphan(t, { json: true }))
+
+ await t.test('still rejects a required unreviewed package', async t => {
+ const { npm } = await loadMockNpm(t, {
+ config: { audit: false, 'strict-allow-scripts': true },
+ prefixDir: orphanFixture(t, { requiredScripts: true }),
+ })
+ await t.rejects(npm.exec('install', []), {
+ code: 'ESTRICTALLOWSCRIPTS',
+ message: /1 package\(s\) have install scripts not covered by allowScripts:\n {2}abbrev@1\.0\.0/,
+ })
+ })
+})
+
t.test('should install in workspace with unhoisted module', async t => {
const { npm, registry, assert } = await loadMockNpm(t, {
prefixDir: workspaceMock(t, {
diff --git a/deps/npm/test/lib/commands/rebuild.js b/deps/npm/test/lib/commands/rebuild.js
index cfd2d2511e1..5bd2295f647 100644
--- a/deps/npm/test/lib/commands/rebuild.js
+++ b/deps/npm/test/lib/commands/rebuild.js
@@ -244,6 +244,33 @@ t.test('emits blocked warning for unreviewed install scripts', async t => {
)
})
+t.test('strict rebuild rejects extraneous packages on disk', async t => {
+ for (const args of [[], ['canvas']]) {
+ await t.test(args.length ? 'named package' : 'all packages', async t => {
+ const { npm, prefix } = await setupMockNpm(t, {
+ config: { 'strict-allow-scripts': true },
+ prefixDir: {
+ 'package.json': JSON.stringify({ name: 'host', version: '1.0.0' }),
+ node_modules: {
+ canvas: {
+ 'package.json': JSON.stringify({
+ name: 'canvas',
+ version: '1.0.0',
+ scripts: { install: "node -e \"require('fs').writeFileSync('ran', '')\"" },
+ }),
+ },
+ },
+ },
+ })
+ await t.rejects(npm.exec('rebuild', args), {
+ code: 'ESTRICTALLOWSCRIPTS',
+ message: /canvas@1\.0\.0/,
+ })
+ t.notOk(fs.existsSync(resolve(prefix, 'node_modules/canvas/ran')), 'script did not run')
+ })
+ }
+})
+
t.test('global advisory warning points at npm config set, not approve-scripts', async t => {
const { npm, logs } = await setupMockNpm(t, {
config: {
diff --git a/deps/npm/test/lib/commands/unpublish.js b/deps/npm/test/lib/commands/unpublish.js
index 4c8bc5e058a..26520ea2119 100644
--- a/deps/npm/test/lib/commands/unpublish.js
+++ b/deps/npm/test/lib/commands/unpublish.js
@@ -166,6 +166,49 @@ t.test('unpublish <pkg>@version last version', async t => {
)
})
+t.test('unpublish <pkg>@version of a packument with no versions', async t => {
+ const { npm } = await loadMockNpm(t, {
+ config: {
+ ...auth,
+ },
+ })
+ const registry = new MockRegistry({
+ tap: t,
+ registry: npm.config.get('registry'),
+ authorization: 'test-auth-token',
+ })
+ const manifest = registry.manifest({ name: pkg })
+ delete manifest.versions
+ await registry.package({ manifest, query: { write: true } })
+
+ await t.rejects(
+ npm.exec('unpublish', ['test-package@1.0.0']),
+ /the registry returned no versions for test-package/
+ )
+})
+
+t.test('unpublish <pkg>@version of a packument with no versions with --force', async t => {
+ const { npm } = await loadMockNpm(t, {
+ config: {
+ force: true,
+ ...auth,
+ },
+ })
+ const registry = new MockRegistry({
+ tap: t,
+ registry: npm.config.get('registry'),
+ authorization: 'test-auth-token',
+ })
+ const manifest = registry.manifest({ name: pkg })
+ manifest.versions = {}
+ await registry.package({ manifest, query: { write: true } })
+
+ await t.rejects(
+ npm.exec('unpublish', ['test-package@1.0.0']),
+ /the registry returned no versions for test-package/
+ )
+})
+
t.test('no version found in package.json no force', async t => {
const { npm } = await loadMockNpm(t, {
config: {
diff --git a/deps/npm/test/lib/utils/check-allow-scripts.js b/deps/npm/test/lib/utils/check-allow-scripts.js
index c67ec2a7cd7..f7fe9c6367c 100644
--- a/deps/npm/test/lib/utils/check-allow-scripts.js
+++ b/deps/npm/test/lib/utils/check-allow-scripts.js
@@ -95,6 +95,29 @@ t.test('skips project root, workspace, and linked nodes', async t => {
t.strictSame(result, [])
})
+t.test('only skips extraneous nodes when requested', async t => {
+ const checkAllowScripts = mockCheck(t)
+ const orphan = {
+ ...node({ name: 'orphan', scripts: { install: 'x' }, isRegistryDependency: false }),
+ extraneous: true,
+ edgesIn: new Set(),
+ parent: null,
+ linksIn: new Set(),
+ }
+ for (const skipExtraneous of [undefined, false, true]) {
+ const result = await checkAllowScripts({
+ arb: arb({ nodes: [orphan], allowScripts: { orphan: false } }),
+ npm: { flatOptions: {} },
+ skipExtraneous,
+ })
+ t.strictSame(
+ result.map(({ node: entry }) => entry),
+ skipExtraneous ? [] : [orphan],
+ `skipExtraneous=${skipExtraneous}`
+ )
+ }
+})
+
t.test('skips nodes with no install-relevant scripts', async t => {
const checkAllowScripts = mockCheck(t)
const result = await checkAllowScripts({
diff --git a/deps/npm/test/lib/utils/is-windows.js b/deps/npm/test/lib/utils/is-windows.js
new file mode 100644
index 00000000000..a8606da3a78
--- /dev/null
+++ b/deps/npm/test/lib/utils/is-windows.js
@@ -0,0 +1,65 @@
+const t = require('tap')
+const { isGitBashMsystem } = require('../../../lib/utils/is-windows.js')
+
+t.test('isGitBashMsystem recognizes Git Bash / MSYS2 shells', t => {
+ t.equal(isGitBashMsystem('MINGW64'), true)
+ t.equal(isGitBashMsystem('MINGW32'), true)
+ t.equal(isGitBashMsystem('UCRT64'), true, 'Git for Windows 2.56+ default')
+ t.equal(isGitBashMsystem('CLANG64'), true)
+ t.equal(isGitBashMsystem('CLANG32'), true)
+ t.equal(isGitBashMsystem('CLANGARM64'), true)
+ t.equal(isGitBashMsystem('MSYS'), false)
+ t.equal(isGitBashMsystem('nogmingw'), false)
+ t.equal(isGitBashMsystem(undefined), false)
+ t.equal(isGitBashMsystem(''), false)
+ t.end()
+})
+
+t.test('isWindowsShell respects UCRT64 via fresh require', t => {
+ const path = require.resolve('../../../lib/utils/is-windows.js')
+ const origPlatform = Object.getOwnPropertyDescriptor(process, 'platform')
+ const origMsystem = process.env.MSYSTEM
+ const origTerm = process.env.TERM
+
+ const load = (platform, msystem, term) => {
+ delete require.cache[path]
+ Object.defineProperty(process, 'platform', { value: platform, configurable: true })
+ if (msystem === undefined) {
+ delete process.env.MSYSTEM
+ } else {
+ process.env.MSYSTEM = msystem
+ }
+ if (term === undefined) {
+ delete process.env.TERM
+ } else {
+ process.env.TERM = term
+ }
+ return require(path).isWindowsShell
+ }
+
+ t.teardown(() => {
+ delete require.cache[path]
+ if (origPlatform) {
+ Object.defineProperty(process, 'platform', origPlatform)
+ }
+ if (origMsystem === undefined) {
+ delete process.env.MSYSTEM
+ } else {
+ process.env.MSYSTEM = origMsystem
+ }
+ if (origTerm === undefined) {
+ delete process.env.TERM
+ } else {
+ process.env.TERM = origTerm
+ }
+ })
+
+ t.equal(load('linux', undefined, undefined), false)
+ t.equal(load('win32', undefined, undefined), true)
+ t.equal(load('win32', 'MINGW64', undefined), false)
+ t.equal(load('win32', 'UCRT64', undefined), false, 'UCRT64 Git Bash is not cmd.exe')
+ t.equal(load('win32', 'CLANG64', undefined), false)
+ t.equal(load('win32', undefined, 'cygwin'), false)
+ t.equal(load('win32', 'nogmingw', undefined), true)
+ t.end()
+})
diff --git a/deps/npm/test/lib/utils/reify-finish.js b/deps/npm/test/lib/utils/reify-finish.js
index a1dd165034a..56ef51d75ab 100644
--- a/deps/npm/test/lib/utils/reify-finish.js
+++ b/deps/npm/test/lib/utils/reify-finish.js
@@ -23,8 +23,11 @@ const mockReififyFinish = async (t, { actualTree = {}, otherDirs = {}, ...config
config,
})
+ let reportedScripts
const reifyFinish = tmock(t, '{LIB}/utils/reify-finish.js', {
- '{LIB}/utils/reify-output.js': () => {},
+ '{LIB}/utils/reify-output.js': (_npm, _arb, { unreviewedScripts }) => {
+ reportedScripts = unreviewedScripts
+ },
})
await reifyFinish(mock.npm, {
@@ -39,6 +42,7 @@ const mockReififyFinish = async (t, { actualTree = {}, otherDirs = {}, ...config
return {
builtinRc,
+ reportedScripts,
...mock,
}
}
@@ -51,6 +55,31 @@ t.test('ok by default', async t => {
t.strictSame(mock.builtinRc.data, { key: 'value' })
})
+t.test('only omits disconnected orphans from post-install reporting', async t => {
+ for (const strict of [false, true]) {
+ await t.test(`strict=${strict}`, async t => {
+ const candidate = (name, properties = {}) => ({
+ name,
+ package: { name, version: '1.0.0', scripts: { install: `echo ${name}` } },
+ extraneous: true,
+ parent: null,
+ linksIn: new Set(),
+ ...properties,
+ })
+ const orphan = candidate('orphan')
+ const attached = candidate('attached', { parent: {} })
+ const linked = candidate('linked', { linksIn: new Set([{}]) })
+ const { reportedScripts } = await mockReififyFinish(t, {
+ 'strict-allow-scripts': strict,
+ actualTree: {
+ inventory: new Map([orphan, attached, linked].map(n => [n.name, n])),
+ },
+ })
+ t.strictSame(reportedScripts.map(({ node }) => node), [attached, linked])
+ })
+ }
+})
+
t.test('should not write if no global npm module', async t => {
const mock = await mockReififyFinish(t, {
global: true,
diff --git a/deps/npm/test/lib/utils/strict-allow-scripts-preflight.js b/deps/npm/test/lib/utils/strict-allow-scripts-preflight.js
index c67a6e4853a..d8115857b64 100644
--- a/deps/npm/test/lib/utils/strict-allow-scripts-preflight.js
+++ b/deps/npm/test/lib/utils/strict-allow-scripts-preflight.js
@@ -1,4 +1,8 @@
const t = require('tap')
+const { join } = require('node:path')
+const Arborist = require('@npmcli/arborist')
+const { loadNpmWithRegistry } = require('../../fixtures/mock-npm.js')
+const orphanFixture = require('../../fixtures/allow-scripts-orphan.js')
const preflight = require('../../../lib/utils/strict-allow-scripts-preflight.js')
@@ -24,9 +28,18 @@ const tree = (nodes) => ({
inventory: new Map(nodes.map((n, i) => [`node_modules/${n.name}-${i}`, n])),
})
-const makeArb = ({ ideal, actual, allowScripts = null } = {}) => {
+const orphan = () => ({
+ ...node({ name: 'orphan' }),
+ extraneous: true,
+ isRegistryDependency: false,
+ edgesIn: new Set(),
+ parent: null,
+ linksIn: new Set(),
+})
+
+const makeArb = ({ ideal, actual, allowScripts = null, options = {} } = {}) => {
const arb = {
- options: { allowScripts, ignoreScripts: false },
+ options: { allowScripts, ignoreScripts: false, ...options },
idealTree: ideal ?? null,
actualTree: actual ?? null,
}
@@ -89,6 +102,99 @@ t.test('passes when the only unreviewed node is inert (platform-incompatible opt
t.pass('no error thrown for inert node')
})
+t.test('skips disconnected orphans when pruning is disabled', async t => {
+ for (const installStrategy of ['hoisted', 'linked']) {
+ await t.test(installStrategy, async t => {
+ const { npm, prefix, registry, assert } = await loadNpmWithRegistry(t, {
+ config: {
+ audit: false,
+ 'strict-allow-scripts': true,
+ 'install-strategy': installStrategy,
+ },
+ prefixDir: orphanFixture(t, { allowScripts: { orphan: false } }),
+ })
+ const opts = {
+ ...npm.flatOptions,
+ path: prefix,
+ prune: false,
+ allowScripts: { orphan: false },
+ }
+ const arb = new Arborist(opts)
+ await arb.buildIdealTree(opts)
+ const location = 'app/node_modules/abbrev/node_modules/orphan'
+ const unused = arb.idealTree.inventory.get(location)
+ t.match(unused, { extraneous: true, parent: null })
+ t.equal(unused.linksIn.size, 0, 'the orphan has no incoming links')
+
+ await preflight({ arb, npm, idealTreeOpts: opts })
+
+ const manifest = registry.manifest({ name: 'abbrev' })
+ await registry.tarball({
+ manifest: manifest.versions['1.0.0'],
+ tarball: join(prefix, 'tarballs/abbrev@1.0.0'),
+ })
+ await arb.reify(opts)
+ const installedPath = installStrategy === 'linked' ? 'app/node_modules' : 'node_modules'
+ assert.packageInstalled(`${installedPath}/abbrev@1.0.0`)
+ assert.fileShouldNotExist(location)
+ t.equal(arb.scriptsRun.size, 0, 'no install scripts ran')
+ const actual = await new Arborist(opts).loadActual()
+ t.notOk([...actual.inventory.values()].some(n => n.name === 'orphan'),
+ 'the installed tree has no orphan')
+ })
+ }
+})
+
+t.test('skips orphans in a newly built ideal tree', async t => {
+ const arb = makeArb()
+ arb.buildIdealTree = async () => {
+ arb.idealTree = tree([orphan()])
+ }
+ await t.resolves(preflight({
+ arb,
+ npm: { flatOptions: { strictAllowScripts: true } },
+ idealTreeOpts: {},
+ }))
+ t.ok(arb.idealTree, 'built the ideal tree')
+})
+
+t.test('does not skip an extraneous target with an incoming link', async t => {
+ const target = { ...orphan(), linksIn: new Set([{}]) }
+ const arb = makeArb({
+ ideal: tree([target]),
+ allowScripts: { orphan: false },
+ options: { prune: false },
+ })
+ await t.rejects(preflight({
+ arb,
+ npm: { flatOptions: { strictAllowScripts: true } },
+ idealTreeOpts: { prune: false },
+ }), { code: 'ESTRICTALLOWSCRIPTS', message: /orphan@1\.0\.0/ })
+})
+
+t.test('skipping an orphan does not skip a required unreviewed package', async t => {
+ const arb = makeArb({ ideal: tree([orphan(), node({ name: 'required' })]) })
+ await t.rejects(preflight({
+ arb,
+ npm: { flatOptions: { strictAllowScripts: true } },
+ idealTreeOpts: {},
+ }), {
+ code: 'ESTRICTALLOWSCRIPTS',
+ message: /1 package\(s\) have install scripts not covered by allowScripts:\n {2}required@1\.0\.0/,
+ })
+})
+
+t.test('does not skip actual-tree orphans even with an ideal tree', async t => {
+ const arb = makeArb({
+ ideal: tree([]),
+ actual: tree([orphan()]),
+ })
+ await t.rejects(preflight({
+ arb,
+ npm: { flatOptions: { strictAllowScripts: true } },
+ }), { code: 'ESTRICTALLOWSCRIPTS', message: /orphan@1\.0\.0/ })
+})
+
t.test('passes when all install-script nodes are explicitly approved', async t => {
const arb = makeArb({
ideal: tree([node({ name: 'canvas' })]),