deps: upgrade npm to 11.5.1

PR-URL: https://github.com/nodejs/node/pull/59199
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
npm CLI robot 2025-07-26 00:44:34 -07:00 committed by GitHub
parent 5e86ad9c6c
commit a7999c602c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
238 changed files with 1761 additions and 542 deletions

View file

@ -24,7 +24,7 @@ folder and use the `name` property.
#### `browser`
* Default: OS X: `"open"`, Windows: `"start"`, Others: `"xdg-open"`
* Default: macOS: `"open"`, Windows: `"start"`, Others: `"xdg-open"`
* Type: null, Boolean, or String
The browser that is called by npm commands to open websites.

View file

@ -24,7 +24,7 @@ package names at once. If no package name is provided, it will search for a
#### `browser`
* Default: OS X: `"open"`, Windows: `"start"`, Others: `"xdg-open"`
* Default: macOS: `"open"`, Windows: `"start"`, Others: `"xdg-open"`
* Type: null, Boolean, or String
The browser that is called by npm commands to open websites.

View file

@ -81,7 +81,7 @@ Not supported by all npm commands.
#### `browser`
* Default: OS X: `"open"`, Windows: `"start"`, Others: `"xdg-open"`
* Default: macOS: `"open"`, Windows: `"start"`, Others: `"xdg-open"`
* Type: null, Boolean, or String
The browser that is called by npm commands to open websites.

View file

@ -231,6 +231,23 @@ submitted.
#### `before`
* Default: null
* Type: null or Date
If passed to `npm install`, will rebuild the npm tree such that only
versions that were available **on or before** the given date are installed.
If there are no versions available for the current set of dependencies, the
command will error.
If the requested version is a `dist-tag` and the given tag does not pass the
`--before` filter, the most recent version less than or equal to that tag
will be used. For example, `foo@latest` might install `foo@1.2` even though
`latest` is `2.0`.
#### `bin-links`
* Default: true

View file

@ -619,6 +619,23 @@ submitted.
#### `before`
* Default: null
* Type: null or Date
If passed to `npm install`, will rebuild the npm tree such that only
versions that were available **on or before** the given date are installed.
If there are no versions available for the current set of dependencies, the
command will error.
If the requested version is a `dist-tag` and the given tag does not pass the
`--before` filter, the most recent version less than or equal to that tag
will be used. For example, `foo@latest` might install `foo@1.2` even though
`latest` is `2.0`.
#### `bin-links`
* Default: true

View file

@ -27,7 +27,7 @@ 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@11.4.2 /path/to/npm
npm@11.5.1 /path/to/npm
└─┬ init-package-json@0.0.4
└── promzard@0.1.5
```

View file

@ -169,6 +169,23 @@ brand new workspace within the project.
This value is not exported to the environment for child processes.
#### `before`
* Default: null
* Type: null or Date
If passed to `npm install`, will rebuild the npm tree such that only
versions that were available **on or before** the given date are installed.
If there are no versions available for the current set of dependencies, the
command will error.
If the requested version is a `dist-tag` and the given tag does not pass the
`--before` filter, the most recent version less than or equal to that tag
will be used. For example, `foo@latest` might install `foo@1.2` even though
`latest` is `2.0`.
### See Also
* [package spec](/using-npm/package-spec)

View file

@ -22,7 +22,7 @@ provided, it will search for a `package.json` in the current folder and use the
#### `browser`
* Default: OS X: `"open"`, Windows: `"start"`, Others: `"xdg-open"`
* Default: macOS: `"open"`, Windows: `"start"`, Others: `"xdg-open"`
* Type: null, Boolean, or String
The browser that is called by npm commands to open websites.

View file

@ -332,6 +332,23 @@ submitted.
#### `before`
* Default: null
* Type: null or Date
If passed to `npm install`, will rebuild the npm tree such that only
versions that were available **on or before** the given date are installed.
If there are no versions available for the current set of dependencies, the
command will error.
If the requested version is a `dist-tag` and the given tag does not pass the
`--before` filter, the most recent version less than or equal to that tag
will be used. For example, `foo@latest` might install `foo@1.2` even though
`latest` is `2.0`.
#### `bin-links`
* Default: true

View file

@ -14,7 +14,7 @@ Note: This command is unaware of workspaces.
### Version
11.4.2
11.5.1
### Description

View file

@ -50,9 +50,9 @@ installer to install both Node.js and npm on your system.
* [NodeSource installer](https://github.com/nodesource/distributions). If
you use Linux, we recommend that you use a NodeSource installer.
#### OS X or Windows Node installers
#### macOS or Windows Node installers
If you're using OS X or Windows, use one of the installers from the
If you're using macOS or Windows, use one of the installers from the
[Node.js download page](https://nodejs.org/en/download/). Be sure to
install the version labeled **LTS**. Other versions have not yet been
tested with npm.
@ -69,10 +69,3 @@ installers:
Or see [this page](https://nodejs.org/en/download/package-manager/) to
install npm for Linux in the way many Linux developers prefer.
#### Less-common operating systems
For more information on installing Node.js on a variety of operating
systems, see [this page][pkg-mgr].
[pkg-mgr]: https://nodejs.org/en/download/package-manager/

View file

@ -218,9 +218,9 @@ config is given, this value will always be set to `legacy`.
* Type: null or Date
If passed to `npm install`, will rebuild the npm tree such that only
versions that were available **on or before** the `--before` time get
installed. If there's no versions available for the current set of direct
dependencies, the command will error.
versions that were available **on or before** the given date are installed.
If there are no versions available for the current set of dependencies, the
command will error.
If the requested version is a `dist-tag` and the given tag does not pass the
`--before` filter, the most recent version less than or equal to that tag
@ -245,7 +245,7 @@ systems.
#### `browser`
* Default: OS X: `"open"`, Windows: `"start"`, Others: `"xdg-open"`
* Default: macOS: `"open"`, Windows: `"start"`, Others: `"xdg-open"`
* Type: null, Boolean, or String
The browser that is called by npm commands to open websites.
@ -1245,7 +1245,8 @@ a semver. Like the `rc` in `1.2.0-rc.8`.
#### `progress`
* Default: `true` unless running in a known CI system
* Default: `true` when not in CI and both stderr and stdout are TTYs and not
in a dumb terminal
* Type: Boolean
When set to `true`, npm will display a progress bar during time intensive

View file

@ -9,7 +9,7 @@ description: How npm handles the "scripts" field
The `"scripts"` property of your `package.json` file supports a number
of built-in scripts and their preset life cycle events as well as
arbitrary scripts. These all can be executed by running
`npm run <stage>` or `npm run <stage>` for short. *Pre* and *post*
`npm run <stage>`. *Pre* and *post*
commands with matching names will be run for those as well (e.g. `premyscript`,
`myscript`, `postmyscript`). Scripts from dependencies can be run with
`npm explore <pkg> -- npm run <stage>`.

View file

@ -141,9 +141,9 @@ npm command-line interface
<section id="content">
<header class="title">
<h1 id="----npm-access----1142">
<h1 id="----npm-access----1151">
<span>npm-access</span>
<span class="version">@11.4.2</span>
<span class="version">@11.5.1</span>
</h1>
<span class="description">Set access level on published packages</span>
</header>

View file

@ -141,9 +141,9 @@ npm command-line interface
<section id="content">
<header class="title">
<h1 id="----npm-adduser----1142">
<h1 id="----npm-adduser----1151">
<span>npm-adduser</span>
<span class="version">@11.4.2</span>
<span class="version">@11.5.1</span>
</h1>
<span class="description">Add a registry user account</span>
</header>

View file

@ -141,9 +141,9 @@ npm command-line interface
<section id="content">
<header class="title">
<h1 id="----npm-audit----1142">
<h1 id="----npm-audit----1151">
<span>npm-audit</span>
<span class="version">@11.4.2</span>
<span class="version">@11.5.1</span>
</h1>
<span class="description">Run a security audit</span>
</header>

View file

@ -141,9 +141,9 @@ npm command-line interface
<section id="content">
<header class="title">
<h1 id="----npm-bugs----1142">
<h1 id="----npm-bugs----1151">
<span>npm-bugs</span>
<span class="version">@11.4.2</span>
<span class="version">@11.5.1</span>
</h1>
<span class="description">Report bugs for a package in a web browser</span>
</header>
@ -167,7 +167,7 @@ folder and use the <code>name</code> property.</p>
<h3 id="configuration">Configuration</h3>
<h4 id="browser"><code>browser</code></h4>
<ul>
<li>Default: OS X: <code>"open"</code>, Windows: <code>"start"</code>, Others: <code>"xdg-open"</code></li>
<li>Default: macOS: <code>"open"</code>, Windows: <code>"start"</code>, Others: <code>"xdg-open"</code></li>
<li>Type: null, Boolean, or String</li>
</ul>
<p>The browser that is called by npm commands to open websites.</p>

View file

@ -141,9 +141,9 @@ npm command-line interface
<section id="content">
<header class="title">
<h1 id="----npm-cache----1142">
<h1 id="----npm-cache----1151">
<span>npm-cache</span>
<span class="version">@11.4.2</span>
<span class="version">@11.5.1</span>
</h1>
<span class="description">Manipulates packages cache</span>
</header>

View file

@ -141,9 +141,9 @@ npm command-line interface
<section id="content">
<header class="title">
<h1 id="----npm-ci----1142">
<h1 id="----npm-ci----1151">
<span>npm-ci</span>
<span class="version">@11.4.2</span>
<span class="version">@11.5.1</span>
</h1>
<span class="description">Clean install a project</span>
</header>

View file

@ -141,9 +141,9 @@ npm command-line interface
<section id="content">
<header class="title">
<h1 id="----npm-completion----1142">
<h1 id="----npm-completion----1151">
<span>npm-completion</span>
<span class="version">@11.4.2</span>
<span class="version">@11.5.1</span>
</h1>
<span class="description">Tab Completion for npm</span>
</header>

View file

@ -141,9 +141,9 @@ npm command-line interface
<section id="content">
<header class="title">
<h1 id="----npm-config----1142">
<h1 id="----npm-config----1151">
<span>npm-config</span>
<span class="version">@11.4.2</span>
<span class="version">@11.5.1</span>
</h1>
<span class="description">Manage the npm configuration files</span>
</header>

View file

@ -141,9 +141,9 @@ npm command-line interface
<section id="content">
<header class="title">
<h1 id="----npm-dedupe----1142">
<h1 id="----npm-dedupe----1151">
<span>npm-dedupe</span>
<span class="version">@11.4.2</span>
<span class="version">@11.5.1</span>
</h1>
<span class="description">Reduce duplication in the package tree</span>
</header>

View file

@ -141,9 +141,9 @@ npm command-line interface
<section id="content">
<header class="title">
<h1 id="----npm-deprecate----1142">
<h1 id="----npm-deprecate----1151">
<span>npm-deprecate</span>
<span class="version">@11.4.2</span>
<span class="version">@11.5.1</span>
</h1>
<span class="description">Deprecate a version of a package</span>
</header>

View file

@ -141,9 +141,9 @@ npm command-line interface
<section id="content">
<header class="title">
<h1 id="----npm-diff----1142">
<h1 id="----npm-diff----1151">
<span>npm-diff</span>
<span class="version">@11.4.2</span>
<span class="version">@11.5.1</span>
</h1>
<span class="description">The registry diff command</span>
</header>

View file

@ -141,9 +141,9 @@ npm command-line interface
<section id="content">
<header class="title">
<h1 id="----npm-dist-tag----1142">
<h1 id="----npm-dist-tag----1151">
<span>npm-dist-tag</span>
<span class="version">@11.4.2</span>
<span class="version">@11.5.1</span>
</h1>
<span class="description">Modify package distribution tags</span>
</header>

View file

@ -141,9 +141,9 @@ npm command-line interface
<section id="content">
<header class="title">
<h1 id="----npm-docs----1142">
<h1 id="----npm-docs----1151">
<span>npm-docs</span>
<span class="version">@11.4.2</span>
<span class="version">@11.5.1</span>
</h1>
<span class="description">Open documentation for a package in a web browser</span>
</header>
@ -167,7 +167,7 @@ package names at once. If no package name is provided, it will search for a
<h3 id="configuration">Configuration</h3>
<h4 id="browser"><code>browser</code></h4>
<ul>
<li>Default: OS X: <code>"open"</code>, Windows: <code>"start"</code>, Others: <code>"xdg-open"</code></li>
<li>Default: macOS: <code>"open"</code>, Windows: <code>"start"</code>, Others: <code>"xdg-open"</code></li>
<li>Type: null, Boolean, or String</li>
</ul>
<p>The browser that is called by npm commands to open websites.</p>

View file

@ -141,9 +141,9 @@ npm command-line interface
<section id="content">
<header class="title">
<h1 id="----npm-doctor----1142">
<h1 id="----npm-doctor----1151">
<span>npm-doctor</span>
<span class="version">@11.4.2</span>
<span class="version">@11.5.1</span>
</h1>
<span class="description">Check the health of your npm environment</span>
</header>

View file

@ -141,9 +141,9 @@ npm command-line interface
<section id="content">
<header class="title">
<h1 id="----npm-edit----1142">
<h1 id="----npm-edit----1151">
<span>npm-edit</span>
<span class="version">@11.4.2</span>
<span class="version">@11.5.1</span>
</h1>
<span class="description">Edit an installed package</span>
</header>

View file

@ -141,9 +141,9 @@ npm command-line interface
<section id="content">
<header class="title">
<h1 id="----npm-exec----1142">
<h1 id="----npm-exec----1151">
<span>npm-exec</span>
<span class="version">@11.4.2</span>
<span class="version">@11.5.1</span>
</h1>
<span class="description">Run a command from a local or remote npm package</span>
</header>

View file

@ -141,9 +141,9 @@ npm command-line interface
<section id="content">
<header class="title">
<h1 id="----npm-explain----1142">
<h1 id="----npm-explain----1151">
<span>npm-explain</span>
<span class="version">@11.4.2</span>
<span class="version">@11.5.1</span>
</h1>
<span class="description">Explain installed packages</span>
</header>

View file

@ -141,9 +141,9 @@ npm command-line interface
<section id="content">
<header class="title">
<h1 id="----npm-explore----1142">
<h1 id="----npm-explore----1151">
<span>npm-explore</span>
<span class="version">@11.4.2</span>
<span class="version">@11.5.1</span>
</h1>
<span class="description">Browse an installed package</span>
</header>

View file

@ -141,9 +141,9 @@ npm command-line interface
<section id="content">
<header class="title">
<h1 id="----npm-find-dupes----1142">
<h1 id="----npm-find-dupes----1151">
<span>npm-find-dupes</span>
<span class="version">@11.4.2</span>
<span class="version">@11.5.1</span>
</h1>
<span class="description">Find duplication in the package tree</span>
</header>

View file

@ -141,9 +141,9 @@ npm command-line interface
<section id="content">
<header class="title">
<h1 id="----npm-fund----1142">
<h1 id="----npm-fund----1151">
<span>npm-fund</span>
<span class="version">@11.4.2</span>
<span class="version">@11.5.1</span>
</h1>
<span class="description">Retrieve funding information</span>
</header>
@ -210,7 +210,7 @@ saving them to your <code>package.json</code>.</li>
<p>Not supported by all npm commands.</p>
<h4 id="browser"><code>browser</code></h4>
<ul>
<li>Default: OS X: <code>"open"</code>, Windows: <code>"start"</code>, Others: <code>"xdg-open"</code></li>
<li>Default: macOS: <code>"open"</code>, Windows: <code>"start"</code>, Others: <code>"xdg-open"</code></li>
<li>Type: null, Boolean, or String</li>
</ul>
<p>The browser that is called by npm commands to open websites.</p>

View file

@ -141,9 +141,9 @@ npm command-line interface
<section id="content">
<header class="title">
<h1 id="----npm-help-search----1142">
<h1 id="----npm-help-search----1151">
<span>npm-help-search</span>
<span class="version">@11.4.2</span>
<span class="version">@11.5.1</span>
</h1>
<span class="description">Search npm help documentation</span>
</header>

View file

@ -141,9 +141,9 @@ npm command-line interface
<section id="content">
<header class="title">
<h1 id="----npm-help----1142">
<h1 id="----npm-help----1151">
<span>npm-help</span>
<span class="version">@11.4.2</span>
<span class="version">@11.5.1</span>
</h1>
<span class="description">Get help on npm</span>
</header>

View file

@ -141,9 +141,9 @@ npm command-line interface
<section id="content">
<header class="title">
<h1 id="----npm-init----1142">
<h1 id="----npm-init----1151">
<span>npm-init</span>
<span class="version">@11.4.2</span>
<span class="version">@11.5.1</span>
</h1>
<span class="description">Create a package.json file</span>
</header>

View file

@ -141,9 +141,9 @@ npm command-line interface
<section id="content">
<header class="title">
<h1 id="----npm-install-ci-test----1142">
<h1 id="----npm-install-ci-test----1151">
<span>npm-install-ci-test</span>
<span class="version">@11.4.2</span>
<span class="version">@11.5.1</span>
</h1>
<span class="description">Install a project with a clean slate and run tests</span>
</header>

View file

@ -141,16 +141,16 @@ npm command-line interface
<section id="content">
<header class="title">
<h1 id="----npm-install-test----1142">
<h1 id="----npm-install-test----1151">
<span>npm-install-test</span>
<span class="version">@11.4.2</span>
<span class="version">@11.5.1</span>
</h1>
<span class="description">Install package(s) and run tests</span>
</header>
<section id="table_of_contents">
<h2 id="table-of-contents">Table of contents</h2>
<div id="_table_of_contents"><ul><li><a href="#synopsis">Synopsis</a></li><li><a href="#description">Description</a></li><li><a href="#configuration">Configuration</a></li><ul><li><a href="#save"><code>save</code></a></li><li><a href="#save-exact"><code>save-exact</code></a></li><li><a href="#global"><code>global</code></a></li><li><a href="#install-strategy"><code>install-strategy</code></a></li><li><a href="#legacy-bundling"><code>legacy-bundling</code></a></li><li><a href="#global-style"><code>global-style</code></a></li><li><a href="#omit"><code>omit</code></a></li><li><a href="#include"><code>include</code></a></li><li><a href="#strict-peer-deps"><code>strict-peer-deps</code></a></li><li><a href="#prefer-dedupe"><code>prefer-dedupe</code></a></li><li><a href="#package-lock"><code>package-lock</code></a></li><li><a href="#package-lock-only"><code>package-lock-only</code></a></li><li><a href="#foreground-scripts"><code>foreground-scripts</code></a></li><li><a href="#ignore-scripts"><code>ignore-scripts</code></a></li><li><a href="#audit"><code>audit</code></a></li><li><a href="#bin-links"><code>bin-links</code></a></li><li><a href="#fund"><code>fund</code></a></li><li><a href="#dry-run"><code>dry-run</code></a></li><li><a href="#cpu"><code>cpu</code></a></li><li><a href="#os"><code>os</code></a></li><li><a href="#libc"><code>libc</code></a></li><li><a href="#workspace"><code>workspace</code></a></li><li><a href="#workspaces"><code>workspaces</code></a></li><li><a href="#include-workspace-root"><code>include-workspace-root</code></a></li><li><a href="#install-links"><code>install-links</code></a></li></ul><li><a href="#see-also">See Also</a></li></ul></div>
<div id="_table_of_contents"><ul><li><a href="#synopsis">Synopsis</a></li><li><a href="#description">Description</a></li><li><a href="#configuration">Configuration</a></li><ul><li><a href="#save"><code>save</code></a></li><li><a href="#save-exact"><code>save-exact</code></a></li><li><a href="#global"><code>global</code></a></li><li><a href="#install-strategy"><code>install-strategy</code></a></li><li><a href="#legacy-bundling"><code>legacy-bundling</code></a></li><li><a href="#global-style"><code>global-style</code></a></li><li><a href="#omit"><code>omit</code></a></li><li><a href="#include"><code>include</code></a></li><li><a href="#strict-peer-deps"><code>strict-peer-deps</code></a></li><li><a href="#prefer-dedupe"><code>prefer-dedupe</code></a></li><li><a href="#package-lock"><code>package-lock</code></a></li><li><a href="#package-lock-only"><code>package-lock-only</code></a></li><li><a href="#foreground-scripts"><code>foreground-scripts</code></a></li><li><a href="#ignore-scripts"><code>ignore-scripts</code></a></li><li><a href="#audit"><code>audit</code></a></li><li><a href="#before"><code>before</code></a></li><li><a href="#bin-links"><code>bin-links</code></a></li><li><a href="#fund"><code>fund</code></a></li><li><a href="#dry-run"><code>dry-run</code></a></li><li><a href="#cpu"><code>cpu</code></a></li><li><a href="#os"><code>os</code></a></li><li><a href="#libc"><code>libc</code></a></li><li><a href="#workspace"><code>workspace</code></a></li><li><a href="#workspaces"><code>workspaces</code></a></li><li><a href="#include-workspace-root"><code>include-workspace-root</code></a></li><li><a href="#install-links"><code>install-links</code></a></li></ul><li><a href="#see-also">See Also</a></li></ul></div>
</section>
<div id="_content"><h3 id="synopsis">Synopsis</h3>
@ -317,6 +317,19 @@ run any pre- or post-scripts.</p>
default registry and all registries configured for scopes. See the
documentation for <a href="../commands/npm-audit.html"><code>npm audit</code></a> for details on what is
submitted.</p>
<h4 id="before"><code>before</code></h4>
<ul>
<li>Default: null</li>
<li>Type: null or Date</li>
</ul>
<p>If passed to <code>npm install</code>, will rebuild the npm tree such that only
versions that were available <strong>on or before</strong> the given date are installed.
If there are no versions available for the current set of dependencies, the
command will error.</p>
<p>If the requested version is a <code>dist-tag</code> and the given tag does not pass the
<code>--before</code> filter, the most recent version less than or equal to that tag
will be used. For example, <code>foo@latest</code> might install <code>foo@1.2</code> even though
<code>latest</code> is <code>2.0</code>.</p>
<h4 id="bin-links"><code>bin-links</code></h4>
<ul>
<li>Default: true</li>

View file

@ -141,16 +141,16 @@ npm command-line interface
<section id="content">
<header class="title">
<h1 id="----npm-install----1142">
<h1 id="----npm-install----1151">
<span>npm-install</span>
<span class="version">@11.4.2</span>
<span class="version">@11.5.1</span>
</h1>
<span class="description">Install a package</span>
</header>
<section id="table_of_contents">
<h2 id="table-of-contents">Table of contents</h2>
<div id="_table_of_contents"><ul><li><a href="#synopsis">Synopsis</a></li><li><a href="#description">Description</a></li><li><a href="#configuration">Configuration</a></li><ul><li><a href="#save"><code>save</code></a></li><li><a href="#save-exact"><code>save-exact</code></a></li><li><a href="#global"><code>global</code></a></li><li><a href="#install-strategy"><code>install-strategy</code></a></li><li><a href="#legacy-bundling"><code>legacy-bundling</code></a></li><li><a href="#global-style"><code>global-style</code></a></li><li><a href="#omit"><code>omit</code></a></li><li><a href="#include"><code>include</code></a></li><li><a href="#strict-peer-deps"><code>strict-peer-deps</code></a></li><li><a href="#prefer-dedupe"><code>prefer-dedupe</code></a></li><li><a href="#package-lock"><code>package-lock</code></a></li><li><a href="#package-lock-only"><code>package-lock-only</code></a></li><li><a href="#foreground-scripts"><code>foreground-scripts</code></a></li><li><a href="#ignore-scripts"><code>ignore-scripts</code></a></li><li><a href="#audit"><code>audit</code></a></li><li><a href="#bin-links"><code>bin-links</code></a></li><li><a href="#fund"><code>fund</code></a></li><li><a href="#dry-run"><code>dry-run</code></a></li><li><a href="#cpu"><code>cpu</code></a></li><li><a href="#os"><code>os</code></a></li><li><a href="#libc"><code>libc</code></a></li><li><a href="#workspace"><code>workspace</code></a></li><li><a href="#workspaces"><code>workspaces</code></a></li><li><a href="#include-workspace-root"><code>include-workspace-root</code></a></li><li><a href="#install-links"><code>install-links</code></a></li></ul><li><a href="#algorithm">Algorithm</a></li><li><a href="#see-also">See Also</a></li></ul></div>
<div id="_table_of_contents"><ul><li><a href="#synopsis">Synopsis</a></li><li><a href="#description">Description</a></li><li><a href="#configuration">Configuration</a></li><ul><li><a href="#save"><code>save</code></a></li><li><a href="#save-exact"><code>save-exact</code></a></li><li><a href="#global"><code>global</code></a></li><li><a href="#install-strategy"><code>install-strategy</code></a></li><li><a href="#legacy-bundling"><code>legacy-bundling</code></a></li><li><a href="#global-style"><code>global-style</code></a></li><li><a href="#omit"><code>omit</code></a></li><li><a href="#include"><code>include</code></a></li><li><a href="#strict-peer-deps"><code>strict-peer-deps</code></a></li><li><a href="#prefer-dedupe"><code>prefer-dedupe</code></a></li><li><a href="#package-lock"><code>package-lock</code></a></li><li><a href="#package-lock-only"><code>package-lock-only</code></a></li><li><a href="#foreground-scripts"><code>foreground-scripts</code></a></li><li><a href="#ignore-scripts"><code>ignore-scripts</code></a></li><li><a href="#audit"><code>audit</code></a></li><li><a href="#before"><code>before</code></a></li><li><a href="#bin-links"><code>bin-links</code></a></li><li><a href="#fund"><code>fund</code></a></li><li><a href="#dry-run"><code>dry-run</code></a></li><li><a href="#cpu"><code>cpu</code></a></li><li><a href="#os"><code>os</code></a></li><li><a href="#libc"><code>libc</code></a></li><li><a href="#workspace"><code>workspace</code></a></li><li><a href="#workspaces"><code>workspaces</code></a></li><li><a href="#include-workspace-root"><code>include-workspace-root</code></a></li><li><a href="#install-links"><code>install-links</code></a></li></ul><li><a href="#algorithm">Algorithm</a></li><li><a href="#see-also">See Also</a></li></ul></div>
</section>
<div id="_content"><h3 id="synopsis">Synopsis</h3>
@ -643,6 +643,19 @@ run any pre- or post-scripts.</p>
default registry and all registries configured for scopes. See the
documentation for <a href="../commands/npm-audit.html"><code>npm audit</code></a> for details on what is
submitted.</p>
<h4 id="before"><code>before</code></h4>
<ul>
<li>Default: null</li>
<li>Type: null or Date</li>
</ul>
<p>If passed to <code>npm install</code>, will rebuild the npm tree such that only
versions that were available <strong>on or before</strong> the given date are installed.
If there are no versions available for the current set of dependencies, the
command will error.</p>
<p>If the requested version is a <code>dist-tag</code> and the given tag does not pass the
<code>--before</code> filter, the most recent version less than or equal to that tag
will be used. For example, <code>foo@latest</code> might install <code>foo@1.2</code> even though
<code>latest</code> is <code>2.0</code>.</p>
<h4 id="bin-links"><code>bin-links</code></h4>
<ul>
<li>Default: true</li>

View file

@ -141,9 +141,9 @@ npm command-line interface
<section id="content">
<header class="title">
<h1 id="----npm-link----1142">
<h1 id="----npm-link----1151">
<span>npm-link</span>
<span class="version">@11.4.2</span>
<span class="version">@11.5.1</span>
</h1>
<span class="description">Symlink a package folder</span>
</header>

View file

@ -141,9 +141,9 @@ npm command-line interface
<section id="content">
<header class="title">
<h1 id="----npm-login----1142">
<h1 id="----npm-login----1151">
<span>npm-login</span>
<span class="version">@11.4.2</span>
<span class="version">@11.5.1</span>
</h1>
<span class="description">Login to a registry user account</span>
</header>

View file

@ -141,9 +141,9 @@ npm command-line interface
<section id="content">
<header class="title">
<h1 id="----npm-logout----1142">
<h1 id="----npm-logout----1151">
<span>npm-logout</span>
<span class="version">@11.4.2</span>
<span class="version">@11.5.1</span>
</h1>
<span class="description">Log out of the registry</span>
</header>

View file

@ -141,9 +141,9 @@ npm command-line interface
<section id="content">
<header class="title">
<h1 id="----npm-ls----1142">
<h1 id="----npm-ls----1151">
<span>npm-ls</span>
<span class="version">@11.4.2</span>
<span class="version">@11.5.1</span>
</h1>
<span class="description">List installed packages</span>
</header>
@ -168,7 +168,7 @@ tree at all, use <a href="../commands/npm-explain.html"><code>npm explain</code>
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@11.4.2 /path/to/npm
<pre><code class="language-bash">npm@11.5.1 /path/to/npm
└─┬ init-package-json@0.0.4
└── promzard@0.1.5
</code></pre>

View file

@ -141,9 +141,9 @@ npm command-line interface
<section id="content">
<header class="title">
<h1 id="----npm-org----1142">
<h1 id="----npm-org----1151">
<span>npm-org</span>
<span class="version">@11.4.2</span>
<span class="version">@11.5.1</span>
</h1>
<span class="description">Manage orgs</span>
</header>

View file

@ -141,16 +141,16 @@ npm command-line interface
<section id="content">
<header class="title">
<h1 id="----npm-outdated----1142">
<h1 id="----npm-outdated----1151">
<span>npm-outdated</span>
<span class="version">@11.4.2</span>
<span class="version">@11.5.1</span>
</h1>
<span class="description">Check for outdated packages</span>
</header>
<section id="table_of_contents">
<h2 id="table-of-contents">Table of contents</h2>
<div id="_table_of_contents"><ul><li><a href="#synopsis">Synopsis</a></li><li><a href="#description">Description</a></li><li><a href="#an-example">An example</a></li><li><a href="#configuration">Configuration</a></li><ul><li><a href="#all"><code>all</code></a></li><li><a href="#json"><code>json</code></a></li><li><a href="#long"><code>long</code></a></li><li><a href="#parseable"><code>parseable</code></a></li><li><a href="#global"><code>global</code></a></li><li><a href="#workspace"><code>workspace</code></a></li></ul><li><a href="#see-also">See Also</a></li></ul></div>
<div id="_table_of_contents"><ul><li><a href="#synopsis">Synopsis</a></li><li><a href="#description">Description</a></li><li><a href="#an-example">An example</a></li><li><a href="#configuration">Configuration</a></li><ul><li><a href="#all"><code>all</code></a></li><li><a href="#json"><code>json</code></a></li><li><a href="#long"><code>long</code></a></li><li><a href="#parseable"><code>parseable</code></a></li><li><a href="#global"><code>global</code></a></li><li><a href="#workspace"><code>workspace</code></a></li><li><a href="#before"><code>before</code></a></li></ul><li><a href="#see-also">See Also</a></li></ul></div>
</section>
<div id="_content"><h3 id="synopsis">Synopsis</h3>
@ -289,6 +289,19 @@ workspaces within that folder)</li>
workspace which does not yet exist, to create the folder and set it up as a
brand new workspace within the project.</p>
<p>This value is not exported to the environment for child processes.</p>
<h4 id="before"><code>before</code></h4>
<ul>
<li>Default: null</li>
<li>Type: null or Date</li>
</ul>
<p>If passed to <code>npm install</code>, will rebuild the npm tree such that only
versions that were available <strong>on or before</strong> the given date are installed.
If there are no versions available for the current set of dependencies, the
command will error.</p>
<p>If the requested version is a <code>dist-tag</code> and the given tag does not pass the
<code>--before</code> filter, the most recent version less than or equal to that tag
will be used. For example, <code>foo@latest</code> might install <code>foo@1.2</code> even though
<code>latest</code> is <code>2.0</code>.</p>
<h3 id="see-also">See Also</h3>
<ul>
<li><a href="../using-npm/package-spec.html">package spec</a></li>

View file

@ -141,9 +141,9 @@ npm command-line interface
<section id="content">
<header class="title">
<h1 id="----npm-owner----1142">
<h1 id="----npm-owner----1151">
<span>npm-owner</span>
<span class="version">@11.4.2</span>
<span class="version">@11.5.1</span>
</h1>
<span class="description">Manage package owners</span>
</header>

View file

@ -141,9 +141,9 @@ npm command-line interface
<section id="content">
<header class="title">
<h1 id="----npm-pack----1142">
<h1 id="----npm-pack----1151">
<span>npm-pack</span>
<span class="version">@11.4.2</span>
<span class="version">@11.5.1</span>
</h1>
<span class="description">Create a tarball from a package</span>
</header>

View file

@ -141,9 +141,9 @@ npm command-line interface
<section id="content">
<header class="title">
<h1 id="----npm-ping----1142">
<h1 id="----npm-ping----1151">
<span>npm-ping</span>
<span class="version">@11.4.2</span>
<span class="version">@11.5.1</span>
</h1>
<span class="description">Ping npm registry</span>
</header>

View file

@ -141,9 +141,9 @@ npm command-line interface
<section id="content">
<header class="title">
<h1 id="----npm-pkg----1142">
<h1 id="----npm-pkg----1151">
<span>npm-pkg</span>
<span class="version">@11.4.2</span>
<span class="version">@11.5.1</span>
</h1>
<span class="description">Manages your package.json</span>
</header>

View file

@ -141,9 +141,9 @@ npm command-line interface
<section id="content">
<header class="title">
<h1 id="----npm-prefix----1142">
<h1 id="----npm-prefix----1151">
<span>npm-prefix</span>
<span class="version">@11.4.2</span>
<span class="version">@11.5.1</span>
</h1>
<span class="description">Display prefix</span>
</header>

View file

@ -141,9 +141,9 @@ npm command-line interface
<section id="content">
<header class="title">
<h1 id="----npm-profile----1142">
<h1 id="----npm-profile----1151">
<span>npm-profile</span>
<span class="version">@11.4.2</span>
<span class="version">@11.5.1</span>
</h1>
<span class="description">Change settings on your registry profile</span>
</header>

View file

@ -141,9 +141,9 @@ npm command-line interface
<section id="content">
<header class="title">
<h1 id="----npm-prune----1142">
<h1 id="----npm-prune----1151">
<span>npm-prune</span>
<span class="version">@11.4.2</span>
<span class="version">@11.5.1</span>
</h1>
<span class="description">Remove extraneous packages</span>
</header>

View file

@ -141,9 +141,9 @@ npm command-line interface
<section id="content">
<header class="title">
<h1 id="----npm-publish----1142">
<h1 id="----npm-publish----1151">
<span>npm-publish</span>
<span class="version">@11.4.2</span>
<span class="version">@11.5.1</span>
</h1>
<span class="description">Publish a package</span>
</header>

View file

@ -141,9 +141,9 @@ npm command-line interface
<section id="content">
<header class="title">
<h1 id="----npm-query----1142">
<h1 id="----npm-query----1151">
<span>npm-query</span>
<span class="version">@11.4.2</span>
<span class="version">@11.5.1</span>
</h1>
<span class="description">Dependency selector query</span>
</header>

View file

@ -141,9 +141,9 @@ npm command-line interface
<section id="content">
<header class="title">
<h1 id="----npm-rebuild----1142">
<h1 id="----npm-rebuild----1151">
<span>npm-rebuild</span>
<span class="version">@11.4.2</span>
<span class="version">@11.5.1</span>
</h1>
<span class="description">Rebuild a package</span>
</header>

View file

@ -141,9 +141,9 @@ npm command-line interface
<section id="content">
<header class="title">
<h1 id="----npm-repo----1142">
<h1 id="----npm-repo----1151">
<span>npm-repo</span>
<span class="version">@11.4.2</span>
<span class="version">@11.5.1</span>
</h1>
<span class="description">Open package repository page in the browser</span>
</header>
@ -165,7 +165,7 @@ provided, it will search for a <code>package.json</code> in the current folder a
<h3 id="configuration">Configuration</h3>
<h4 id="browser"><code>browser</code></h4>
<ul>
<li>Default: OS X: <code>"open"</code>, Windows: <code>"start"</code>, Others: <code>"xdg-open"</code></li>
<li>Default: macOS: <code>"open"</code>, Windows: <code>"start"</code>, Others: <code>"xdg-open"</code></li>
<li>Type: null, Boolean, or String</li>
</ul>
<p>The browser that is called by npm commands to open websites.</p>

View file

@ -141,9 +141,9 @@ npm command-line interface
<section id="content">
<header class="title">
<h1 id="----npm-restart----1142">
<h1 id="----npm-restart----1151">
<span>npm-restart</span>
<span class="version">@11.4.2</span>
<span class="version">@11.5.1</span>
</h1>
<span class="description">Restart a package</span>
</header>

View file

@ -141,9 +141,9 @@ npm command-line interface
<section id="content">
<header class="title">
<h1 id="----npm-root----1142">
<h1 id="----npm-root----1151">
<span>npm-root</span>
<span class="version">@11.4.2</span>
<span class="version">@11.5.1</span>
</h1>
<span class="description">Display npm root</span>
</header>

View file

@ -141,9 +141,9 @@ npm command-line interface
<section id="content">
<header class="title">
<h1 id="----npm-run----1142">
<h1 id="----npm-run----1151">
<span>npm-run</span>
<span class="version">@11.4.2</span>
<span class="version">@11.5.1</span>
</h1>
<span class="description">Run arbitrary package scripts</span>
</header>

View file

@ -141,9 +141,9 @@ npm command-line interface
<section id="content">
<header class="title">
<h1 id="----npm-sbom----1142">
<h1 id="----npm-sbom----1151">
<span>npm-sbom</span>
<span class="version">@11.4.2</span>
<span class="version">@11.5.1</span>
</h1>
<span class="description">Generate a Software Bill of Materials (SBOM)</span>
</header>

View file

@ -141,9 +141,9 @@ npm command-line interface
<section id="content">
<header class="title">
<h1 id="----npm-search----1142">
<h1 id="----npm-search----1151">
<span>npm-search</span>
<span class="version">@11.4.2</span>
<span class="version">@11.5.1</span>
</h1>
<span class="description">Search for packages</span>
</header>

View file

@ -141,9 +141,9 @@ npm command-line interface
<section id="content">
<header class="title">
<h1 id="----npm-shrinkwrap----1142">
<h1 id="----npm-shrinkwrap----1151">
<span>npm-shrinkwrap</span>
<span class="version">@11.4.2</span>
<span class="version">@11.5.1</span>
</h1>
<span class="description">Lock down dependency versions for publication</span>
</header>

View file

@ -141,9 +141,9 @@ npm command-line interface
<section id="content">
<header class="title">
<h1 id="----npm-star----1142">
<h1 id="----npm-star----1151">
<span>npm-star</span>
<span class="version">@11.4.2</span>
<span class="version">@11.5.1</span>
</h1>
<span class="description">Mark your favorite packages</span>
</header>

View file

@ -141,9 +141,9 @@ npm command-line interface
<section id="content">
<header class="title">
<h1 id="----npm-stars----1142">
<h1 id="----npm-stars----1151">
<span>npm-stars</span>
<span class="version">@11.4.2</span>
<span class="version">@11.5.1</span>
</h1>
<span class="description">View packages marked as favorites</span>
</header>

View file

@ -141,9 +141,9 @@ npm command-line interface
<section id="content">
<header class="title">
<h1 id="----npm-start----1142">
<h1 id="----npm-start----1151">
<span>npm-start</span>
<span class="version">@11.4.2</span>
<span class="version">@11.5.1</span>
</h1>
<span class="description">Start a package</span>
</header>

View file

@ -141,9 +141,9 @@ npm command-line interface
<section id="content">
<header class="title">
<h1 id="----npm-stop----1142">
<h1 id="----npm-stop----1151">
<span>npm-stop</span>
<span class="version">@11.4.2</span>
<span class="version">@11.5.1</span>
</h1>
<span class="description">Stop a package</span>
</header>

View file

@ -141,9 +141,9 @@ npm command-line interface
<section id="content">
<header class="title">
<h1 id="----npm-team----1142">
<h1 id="----npm-team----1151">
<span>npm-team</span>
<span class="version">@11.4.2</span>
<span class="version">@11.5.1</span>
</h1>
<span class="description">Manage organization teams and team memberships</span>
</header>

View file

@ -141,9 +141,9 @@ npm command-line interface
<section id="content">
<header class="title">
<h1 id="----npm-test----1142">
<h1 id="----npm-test----1151">
<span>npm-test</span>
<span class="version">@11.4.2</span>
<span class="version">@11.5.1</span>
</h1>
<span class="description">Test a package</span>
</header>

View file

@ -141,9 +141,9 @@ npm command-line interface
<section id="content">
<header class="title">
<h1 id="----npm-token----1142">
<h1 id="----npm-token----1151">
<span>npm-token</span>
<span class="version">@11.4.2</span>
<span class="version">@11.5.1</span>
</h1>
<span class="description">Manage your authentication tokens</span>
</header>

View file

@ -141,9 +141,9 @@ npm command-line interface
<section id="content">
<header class="title">
<h1 id="----npm-undeprecate----1142">
<h1 id="----npm-undeprecate----1151">
<span>npm-undeprecate</span>
<span class="version">@11.4.2</span>
<span class="version">@11.5.1</span>
</h1>
<span class="description">Undeprecate a version of a package</span>
</header>

View file

@ -141,9 +141,9 @@ npm command-line interface
<section id="content">
<header class="title">
<h1 id="----npm-uninstall----1142">
<h1 id="----npm-uninstall----1151">
<span>npm-uninstall</span>
<span class="version">@11.4.2</span>
<span class="version">@11.5.1</span>
</h1>
<span class="description">Remove a package</span>
</header>

View file

@ -141,9 +141,9 @@ npm command-line interface
<section id="content">
<header class="title">
<h1 id="----npm-unpublish----1142">
<h1 id="----npm-unpublish----1151">
<span>npm-unpublish</span>
<span class="version">@11.4.2</span>
<span class="version">@11.5.1</span>
</h1>
<span class="description">Remove a package from the registry</span>
</header>

View file

@ -141,9 +141,9 @@ npm command-line interface
<section id="content">
<header class="title">
<h1 id="----npm-unstar----1142">
<h1 id="----npm-unstar----1151">
<span>npm-unstar</span>
<span class="version">@11.4.2</span>
<span class="version">@11.5.1</span>
</h1>
<span class="description">Remove an item from your favorite packages</span>
</header>

View file

@ -141,16 +141,16 @@ npm command-line interface
<section id="content">
<header class="title">
<h1 id="----npm-update----1142">
<h1 id="----npm-update----1151">
<span>npm-update</span>
<span class="version">@11.4.2</span>
<span class="version">@11.5.1</span>
</h1>
<span class="description">Update packages</span>
</header>
<section id="table_of_contents">
<h2 id="table-of-contents">Table of contents</h2>
<div id="_table_of_contents"><ul><li><a href="#synopsis">Synopsis</a></li><li><a href="#description">Description</a></li><li><a href="#example">Example</a></li><ul><li><a href="#caret-dependencies">Caret Dependencies</a></li><li><a href="#tilde-dependencies">Tilde Dependencies</a></li><li><a href="#caret-dependencies-below-100">Caret Dependencies below 1.0.0</a></li><li><a href="#subdependencies">Subdependencies</a></li><li><a href="#updating-globally-installed-packages">Updating Globally-Installed Packages</a></li></ul><li><a href="#configuration">Configuration</a></li><ul><li><a href="#save"><code>save</code></a></li><li><a href="#global"><code>global</code></a></li><li><a href="#install-strategy"><code>install-strategy</code></a></li><li><a href="#legacy-bundling"><code>legacy-bundling</code></a></li><li><a href="#global-style"><code>global-style</code></a></li><li><a href="#omit"><code>omit</code></a></li><li><a href="#include"><code>include</code></a></li><li><a href="#strict-peer-deps"><code>strict-peer-deps</code></a></li><li><a href="#package-lock"><code>package-lock</code></a></li><li><a href="#foreground-scripts"><code>foreground-scripts</code></a></li><li><a href="#ignore-scripts"><code>ignore-scripts</code></a></li><li><a href="#audit"><code>audit</code></a></li><li><a href="#bin-links"><code>bin-links</code></a></li><li><a href="#fund"><code>fund</code></a></li><li><a href="#dry-run"><code>dry-run</code></a></li><li><a href="#workspace"><code>workspace</code></a></li><li><a href="#workspaces"><code>workspaces</code></a></li><li><a href="#include-workspace-root"><code>include-workspace-root</code></a></li><li><a href="#install-links"><code>install-links</code></a></li></ul><li><a href="#see-also">See Also</a></li></ul></div>
<div id="_table_of_contents"><ul><li><a href="#synopsis">Synopsis</a></li><li><a href="#description">Description</a></li><li><a href="#example">Example</a></li><ul><li><a href="#caret-dependencies">Caret Dependencies</a></li><li><a href="#tilde-dependencies">Tilde Dependencies</a></li><li><a href="#caret-dependencies-below-100">Caret Dependencies below 1.0.0</a></li><li><a href="#subdependencies">Subdependencies</a></li><li><a href="#updating-globally-installed-packages">Updating Globally-Installed Packages</a></li></ul><li><a href="#configuration">Configuration</a></li><ul><li><a href="#save"><code>save</code></a></li><li><a href="#global"><code>global</code></a></li><li><a href="#install-strategy"><code>install-strategy</code></a></li><li><a href="#legacy-bundling"><code>legacy-bundling</code></a></li><li><a href="#global-style"><code>global-style</code></a></li><li><a href="#omit"><code>omit</code></a></li><li><a href="#include"><code>include</code></a></li><li><a href="#strict-peer-deps"><code>strict-peer-deps</code></a></li><li><a href="#package-lock"><code>package-lock</code></a></li><li><a href="#foreground-scripts"><code>foreground-scripts</code></a></li><li><a href="#ignore-scripts"><code>ignore-scripts</code></a></li><li><a href="#audit"><code>audit</code></a></li><li><a href="#before"><code>before</code></a></li><li><a href="#bin-links"><code>bin-links</code></a></li><li><a href="#fund"><code>fund</code></a></li><li><a href="#dry-run"><code>dry-run</code></a></li><li><a href="#workspace"><code>workspace</code></a></li><li><a href="#workspaces"><code>workspaces</code></a></li><li><a href="#include-workspace-root"><code>include-workspace-root</code></a></li><li><a href="#install-links"><code>install-links</code></a></li></ul><li><a href="#see-also">See Also</a></li></ul></div>
</section>
<div id="_content"><h3 id="synopsis">Synopsis</h3>
@ -388,6 +388,19 @@ run any pre- or post-scripts.</p>
default registry and all registries configured for scopes. See the
documentation for <a href="../commands/npm-audit.html"><code>npm audit</code></a> for details on what is
submitted.</p>
<h4 id="before"><code>before</code></h4>
<ul>
<li>Default: null</li>
<li>Type: null or Date</li>
</ul>
<p>If passed to <code>npm install</code>, will rebuild the npm tree such that only
versions that were available <strong>on or before</strong> the given date are installed.
If there are no versions available for the current set of dependencies, the
command will error.</p>
<p>If the requested version is a <code>dist-tag</code> and the given tag does not pass the
<code>--before</code> filter, the most recent version less than or equal to that tag
will be used. For example, <code>foo@latest</code> might install <code>foo@1.2</code> even though
<code>latest</code> is <code>2.0</code>.</p>
<h4 id="bin-links"><code>bin-links</code></h4>
<ul>
<li>Default: true</li>

View file

@ -141,9 +141,9 @@ npm command-line interface
<section id="content">
<header class="title">
<h1 id="----npm-version----1142">
<h1 id="----npm-version----1151">
<span>npm-version</span>
<span class="version">@11.4.2</span>
<span class="version">@11.5.1</span>
</h1>
<span class="description">Bump a package version</span>
</header>

View file

@ -141,9 +141,9 @@ npm command-line interface
<section id="content">
<header class="title">
<h1 id="----npm-view----1142">
<h1 id="----npm-view----1151">
<span>npm-view</span>
<span class="version">@11.4.2</span>
<span class="version">@11.5.1</span>
</h1>
<span class="description">View registry info</span>
</header>

View file

@ -141,9 +141,9 @@ npm command-line interface
<section id="content">
<header class="title">
<h1 id="----npm-whoami----1142">
<h1 id="----npm-whoami----1151">
<span>npm-whoami</span>
<span class="version">@11.4.2</span>
<span class="version">@11.5.1</span>
</h1>
<span class="description">Display npm username</span>
</header>

View file

@ -141,9 +141,9 @@ npm command-line interface
<section id="content">
<header class="title">
<h1 id="----npm----1142">
<h1 id="----npm----1151">
<span>npm</span>
<span class="version">@11.4.2</span>
<span class="version">@11.5.1</span>
</h1>
<span class="description">javascript package manager</span>
</header>
@ -158,7 +158,7 @@ npm command-line interface
</code></pre>
<p>Note: This command is unaware of workspaces.</p>
<h3 id="version">Version</h3>
<p>11.4.2</p>
<p>11.5.1</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

View file

@ -141,9 +141,9 @@ npm command-line interface
<section id="content">
<header class="title">
<h1 id="----npx----1142">
<h1 id="----npx----1151">
<span>npx</span>
<span class="version">@11.4.2</span>
<span class="version">@11.5.1</span>
</h1>
<span class="description">Run a command from a local or remote npm package</span>
</header>

View file

@ -141,9 +141,9 @@ npm command-line interface
<section id="content">
<header class="title">
<h1 id="----folders----1142">
<h1 id="----folders----1151">
<span>folders</span>
<span class="version">@11.4.2</span>
<span class="version">@11.5.1</span>
</h1>
<span class="description">Folder Structures Used by npm</span>
</header>

View file

@ -141,16 +141,16 @@ npm command-line interface
<section id="content">
<header class="title">
<h1 id="----install----1142">
<h1 id="----install----1151">
<span>install</span>
<span class="version">@11.4.2</span>
<span class="version">@11.5.1</span>
</h1>
<span class="description">Download and install node and npm</span>
</header>
<section id="table_of_contents">
<h2 id="table-of-contents">Table of contents</h2>
<div id="_table_of_contents"><ul><li><a href="#description">Description</a></li><li><a href="#overview">Overview</a></li><li><a href="#checking-your-version-of-npm-and-nodejs">Checking your version of npm and Node.js</a></li><li><a href="#using-a-node-version-manager-to-install-nodejs-and-npm">Using a Node version manager to install Node.js and npm</a></li><li><a href="#using-a-node-installer-to-install-nodejs-and-npm">Using a Node installer to install Node.js and npm</a></li><ul><li><a href="#os-x-or-windows-node-installers">OS X or Windows Node installers</a></li><li><a href="#linux-or-other-operating-systems-node-installers">Linux or other operating systems Node installers</a></li><li><a href="#less-common-operating-systems">Less-common operating systems</a></li></ul></ul></div>
<div id="_table_of_contents"><ul><li><a href="#description">Description</a></li><li><a href="#overview">Overview</a></li><li><a href="#checking-your-version-of-npm-and-nodejs">Checking your version of npm and Node.js</a></li><li><a href="#using-a-node-version-manager-to-install-nodejs-and-npm">Using a Node version manager to install Node.js and npm</a></li><li><a href="#using-a-node-installer-to-install-nodejs-and-npm">Using a Node installer to install Node.js and npm</a></li><ul><li><a href="#macos-or-windows-node-installers">macOS or Windows Node installers</a></li><li><a href="#linux-or-other-operating-systems-node-installers">Linux or other operating systems Node installers</a></li></ul></ul></div>
</section>
<div id="_content"><h3 id="description">Description</h3>
@ -190,8 +190,8 @@ installer to install both Node.js and npm on your system.</p>
<li><a href="https://github.com/nodesource/distributions">NodeSource installer</a>. If
you use Linux, we recommend that you use a NodeSource installer.</li>
</ul>
<h4 id="os-x-or-windows-node-installers">OS X or Windows Node installers</h4>
<p>If you're using OS X or Windows, use one of the installers from the
<h4 id="macos-or-windows-node-installers">macOS or Windows Node installers</h4>
<p>If you're using macOS or Windows, use one of the installers from the
<a href="https://nodejs.org/en/download/">Node.js download page</a>. Be sure to
install the version labeled <strong>LTS</strong>. Other versions have not yet been
tested with npm.</p>
@ -205,10 +205,7 @@ installers:</p>
page</a></li>
</ul>
<p>Or see <a href="https://nodejs.org/en/download/package-manager/">this page</a> to
install npm for Linux in the way many Linux developers prefer.</p>
<h4 id="less-common-operating-systems">Less-common operating systems</h4>
<p>For more information on installing Node.js on a variety of operating
systems, see <a href="https://nodejs.org/en/download/package-manager/">this page</a>.</p></div>
install npm for Linux in the way many Linux developers prefer.</p></div>
<footer id="edit">
<a href="https://github.com/npm/cli/edit/latest/docs/lib/content/configuring-npm/install.md">

View file

@ -141,9 +141,9 @@ npm command-line interface
<section id="content">
<header class="title">
<h1 id="----folders----1142">
<h1 id="----folders----1151">
<span>folders</span>
<span class="version">@11.4.2</span>
<span class="version">@11.5.1</span>
</h1>
<span class="description">Folder Structures Used by npm</span>
</header>

View file

@ -141,9 +141,9 @@ npm command-line interface
<section id="content">
<header class="title">
<h1 id="----packagejson----1142">
<h1 id="----packagejson----1151">
<span>package.json</span>
<span class="version">@11.4.2</span>
<span class="version">@11.5.1</span>
</h1>
<span class="description">Specifics of npm's package.json handling</span>
</header>

View file

@ -141,9 +141,9 @@ npm command-line interface
<section id="content">
<header class="title">
<h1 id="----npm-shrinkwrapjson----1142">
<h1 id="----npm-shrinkwrapjson----1151">
<span>npm-shrinkwrap.json</span>
<span class="version">@11.4.2</span>
<span class="version">@11.5.1</span>
</h1>
<span class="description">A publishable lockfile</span>
</header>

View file

@ -141,9 +141,9 @@ npm command-line interface
<section id="content">
<header class="title">
<h1 id="----npmrc----1142">
<h1 id="----npmrc----1151">
<span>npmrc</span>
<span class="version">@11.4.2</span>
<span class="version">@11.5.1</span>
</h1>
<span class="description">The npm config files</span>
</header>

View file

@ -141,9 +141,9 @@ npm command-line interface
<section id="content">
<header class="title">
<h1 id="----packagejson----1142">
<h1 id="----packagejson----1151">
<span>package.json</span>
<span class="version">@11.4.2</span>
<span class="version">@11.5.1</span>
</h1>
<span class="description">Specifics of npm's package.json handling</span>
</header>

View file

@ -141,9 +141,9 @@ npm command-line interface
<section id="content">
<header class="title">
<h1 id="----package-lockjson----1142">
<h1 id="----package-lockjson----1151">
<span>package-lock.json</span>
<span class="version">@11.4.2</span>
<span class="version">@11.5.1</span>
</h1>
<span class="description">A manifestation of the manifest</span>
</header>

View file

@ -141,9 +141,9 @@ npm command-line interface
<section id="content">
<header class="title">
<h1 id="----config----1142">
<h1 id="----config----1151">
<span>config</span>
<span class="version">@11.4.2</span>
<span class="version">@11.5.1</span>
</h1>
<span class="description">More than you probably want to know about npm configuration</span>
</header>
@ -321,9 +321,9 @@ config is given, this value will always be set to <code>legacy</code>.</p>
<li>Type: null or Date</li>
</ul>
<p>If passed to <code>npm install</code>, will rebuild the npm tree such that only
versions that were available <strong>on or before</strong> the <code>--before</code> time get
installed. If there's no versions available for the current set of direct
dependencies, the command will error.</p>
versions that were available <strong>on or before</strong> the given date are installed.
If there are no versions available for the current set of dependencies, the
command will error.</p>
<p>If the requested version is a <code>dist-tag</code> and the given tag does not pass the
<code>--before</code> filter, the most recent version less than or equal to that tag
will be used. For example, <code>foo@latest</code> might install <code>foo@1.2</code> even though
@ -340,7 +340,7 @@ fact that some file systems don't support symlinks, even on ostensibly Unix
systems.</p>
<h4 id="browser"><code>browser</code></h4>
<ul>
<li>Default: OS X: <code>"open"</code>, Windows: <code>"start"</code>, Others: <code>"xdg-open"</code></li>
<li>Default: macOS: <code>"open"</code>, Windows: <code>"start"</code>, Others: <code>"xdg-open"</code></li>
<li>Type: null, Boolean, or String</li>
</ul>
<p>The browser that is called by npm commands to open websites.</p>
@ -1049,7 +1049,8 @@ forces non-global commands to run in the specified folder.</p>
a semver. Like the <code>rc</code> in <code>1.2.0-rc.8</code>.</p>
<h4 id="progress"><code>progress</code></h4>
<ul>
<li>Default: <code>true</code> unless running in a known CI system</li>
<li>Default: <code>true</code> when not in CI and both stderr and stdout are TTYs and not
in a dumb terminal</li>
<li>Type: Boolean</li>
</ul>
<p>When set to <code>true</code>, npm will display a progress bar during time intensive

View file

@ -141,9 +141,9 @@ npm command-line interface
<section id="content">
<header class="title">
<h1 id="----dependency-selector-syntax--querying----1142">
<h1 id="----dependency-selector-syntax--querying----1151">
<span>Dependency Selector Syntax &amp; Querying</span>
<span class="version">@11.4.2</span>
<span class="version">@11.5.1</span>
</h1>
<span class="description">Dependency Selector Syntax &amp; Querying</span>
</header>

View file

@ -141,9 +141,9 @@ npm command-line interface
<section id="content">
<header class="title">
<h1 id="----developers----1142">
<h1 id="----developers----1151">
<span>developers</span>
<span class="version">@11.4.2</span>
<span class="version">@11.5.1</span>
</h1>
<span class="description">Developer Guide</span>
</header>

View file

@ -141,9 +141,9 @@ npm command-line interface
<section id="content">
<header class="title">
<h1 id="----logging----1142">
<h1 id="----logging----1151">
<span>Logging</span>
<span class="version">@11.4.2</span>
<span class="version">@11.5.1</span>
</h1>
<span class="description">Why, What &amp; How We Log</span>
</header>

View file

@ -141,9 +141,9 @@ npm command-line interface
<section id="content">
<header class="title">
<h1 id="----orgs----1142">
<h1 id="----orgs----1151">
<span>orgs</span>
<span class="version">@11.4.2</span>
<span class="version">@11.5.1</span>
</h1>
<span class="description">Working with Teams &amp; Orgs</span>
</header>

View file

@ -141,9 +141,9 @@ npm command-line interface
<section id="content">
<header class="title">
<h1 id="----package-spec----1142">
<h1 id="----package-spec----1151">
<span>package-spec</span>
<span class="version">@11.4.2</span>
<span class="version">@11.5.1</span>
</h1>
<span class="description">Package name specifier</span>
</header>

View file

@ -141,9 +141,9 @@ npm command-line interface
<section id="content">
<header class="title">
<h1 id="----registry----1142">
<h1 id="----registry----1151">
<span>registry</span>
<span class="version">@11.4.2</span>
<span class="version">@11.5.1</span>
</h1>
<span class="description">The JavaScript Package Registry</span>
</header>

View file

@ -141,9 +141,9 @@ npm command-line interface
<section id="content">
<header class="title">
<h1 id="----removal----1142">
<h1 id="----removal----1151">
<span>removal</span>
<span class="version">@11.4.2</span>
<span class="version">@11.5.1</span>
</h1>
<span class="description">Cleaning the Slate</span>
</header>

View file

@ -141,9 +141,9 @@ npm command-line interface
<section id="content">
<header class="title">
<h1 id="----scope----1142">
<h1 id="----scope----1151">
<span>scope</span>
<span class="version">@11.4.2</span>
<span class="version">@11.5.1</span>
</h1>
<span class="description">Scoped packages</span>
</header>

View file

@ -141,9 +141,9 @@ npm command-line interface
<section id="content">
<header class="title">
<h1 id="----scripts----1142">
<h1 id="----scripts----1151">
<span>scripts</span>
<span class="version">@11.4.2</span>
<span class="version">@11.5.1</span>
</h1>
<span class="description">How npm handles the "scripts" field</span>
</header>
@ -157,7 +157,7 @@ npm command-line interface
<p>The <code>"scripts"</code> property of your <code>package.json</code> file supports a number
of built-in scripts and their preset life cycle events as well as
arbitrary scripts. These all can be executed by running
<code>npm run &lt;stage&gt;</code> or <code>npm run &lt;stage&gt;</code> for short. <em>Pre</em> and <em>post</em>
<code>npm run &lt;stage&gt;</code>. <em>Pre</em> and <em>post</em>
commands with matching names will be run for those as well (e.g. <code>premyscript</code>,
<code>myscript</code>, <code>postmyscript</code>). Scripts from dependencies can be run with
<code>npm explore &lt;pkg&gt; -- npm run &lt;stage&gt;</code>.</p>

View file

@ -141,9 +141,9 @@ npm command-line interface
<section id="content">
<header class="title">
<h1 id="----workspaces----1142">
<h1 id="----workspaces----1151">
<span>workspaces</span>
<span class="version">@11.4.2</span>
<span class="version">@11.5.1</span>
</h1>
<span class="description">Working with workspaces</span>
</header>

View file

@ -43,6 +43,16 @@ class ExitHandler {
registerUncaughtHandlers () {
this.#process.on('uncaughtException', this.#handleExit)
this.#process.on('unhandledRejection', this.#handleExit)
// Handle signals that might bypass normal exit flow
// These signals can cause the process to exit without calling the exit handler
const signalsToHandle = ['SIGTERM', 'SIGINT', 'SIGHUP']
for (const signal of signalsToHandle) {
this.#process.on(signal, () => {
// Call the exit handler to ensure proper cleanup
this.#handleExit(new Error(`Process received ${signal}`))
})
}
}
exit (err) {
@ -57,6 +67,17 @@ class ExitHandler {
this.#process.off('exit', this.#handleProcesExitAndReset)
this.#process.off('uncaughtException', this.#handleExit)
this.#process.off('unhandledRejection', this.#handleExit)
const signalsToCleanup = ['SIGTERM', 'SIGINT', 'SIGHUP']
for (const signal of signalsToCleanup) {
try {
this.#process.off(signal, this.#handleExit)
} catch (err) {
// Ignore errors during cleanup - this is defensive programming for edge cases
// where the process object might be in an unexpected state during shutdown
}
}
if (this.#loaded) {
this.#npm.unload()
}

View file

@ -29,6 +29,7 @@ class Install extends ArboristWorkspaceCmd {
'foreground-scripts',
'ignore-scripts',
'audit',
'before',
'bin-links',
'fund',
'dry-run',

Some files were not shown because too many files have changed in this diff Show more