deps: upgrade npm to 10.8.1

PR-URL: https://github.com/nodejs/node/pull/53207
Reviewed-By: Richard Lau <rlau@redhat.com>
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com>
Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com>
This commit is contained in:
npm CLI robot 2024-05-30 04:21:05 -07:00 committed by GitHub
parent a837886561
commit 063afa85fe
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
421 changed files with 2853 additions and 1607 deletions

View File

@ -3,7 +3,7 @@
// without having to load all of npm first
// It does not accept argv params
const path = require('path')
const path = require('node:path')
const Config = require('@npmcli/config')
const { definitions, flatten, shorthands } = require('@npmcli/config/lib/definitions')
const config = new Config({

View File

@ -248,12 +248,15 @@ folder instead of the current working directory. See
If you ask npm to install a package and don't tell it a specific version,
then it will install the specified tag.
Also the tag that is added to the package@version specified by the `npm tag`
command, if no explicit tag is given.
It is the tag added to the package@version specified in the `npm dist-tag
add` command, if no explicit tag is given.
When used by the `npm diff` command, this is the tag used to fetch the
tarball that will be compared with the local files by default.
If used in the `npm publish` command, this is the tag that will be added to
the package submitted to the registry.
#### `workspace`

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@10.8.0 /path/to/npm
npm@10.8.1 /path/to/npm
└─┬ init-package-json@0.0.4
└── promzard@0.1.5
```

View File

@ -95,12 +95,15 @@ built.
If you ask npm to install a package and don't tell it a specific version,
then it will install the specified tag.
Also the tag that is added to the package@version specified by the `npm tag`
command, if no explicit tag is given.
It is the tag added to the package@version specified in the `npm dist-tag
add` command, if no explicit tag is given.
When used by the `npm diff` command, this is the tag used to fetch the
tarball that will be compared with the local files by default.
If used in the `npm publish` command, this is the tag that will be added to
the package submitted to the registry.
#### `access`

View File

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

View File

@ -1567,12 +1567,15 @@ See also the `ca` config.
If you ask npm to install a package and don't tell it a specific version,
then it will install the specified tag.
Also the tag that is added to the package@version specified by the `npm tag`
command, if no explicit tag is given.
It is the tag added to the package@version specified in the `npm dist-tag
add` command, if no explicit tag is given.
When used by the `npm diff` command, this is the tag used to fetch the
tarball that will be compared with the local files by default.
If used in the `npm publish` command, this is the tag that will be added to
the package submitted to the registry.
#### `tag-version-prefix`

View File

@ -141,9 +141,9 @@ npm command-line interface
<section id="content">
<header class="title">
<h1 id="----npm-access----1080">
<h1 id="----npm-access----1081">
<span>npm-access</span>
<span class="version">@10.8.0</span>
<span class="version">@10.8.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----1080">
<h1 id="----npm-adduser----1081">
<span>npm-adduser</span>
<span class="version">@10.8.0</span>
<span class="version">@10.8.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----1080">
<h1 id="----npm-audit----1081">
<span>npm-audit</span>
<span class="version">@10.8.0</span>
<span class="version">@10.8.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----1080">
<h1 id="----npm-bugs----1081">
<span>npm-bugs</span>
<span class="version">@10.8.0</span>
<span class="version">@10.8.1</span>
</h1>
<span class="description">Report bugs for a package in a web browser</span>
</header>

View File

@ -141,9 +141,9 @@ npm command-line interface
<section id="content">
<header class="title">
<h1 id="----npm-cache----1080">
<h1 id="----npm-cache----1081">
<span>npm-cache</span>
<span class="version">@10.8.0</span>
<span class="version">@10.8.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----1080">
<h1 id="----npm-ci----1081">
<span>npm-ci</span>
<span class="version">@10.8.0</span>
<span class="version">@10.8.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----1080">
<h1 id="----npm-completion----1081">
<span>npm-completion</span>
<span class="version">@10.8.0</span>
<span class="version">@10.8.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----1080">
<h1 id="----npm-config----1081">
<span>npm-config</span>
<span class="version">@10.8.0</span>
<span class="version">@10.8.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----1080">
<h1 id="----npm-dedupe----1081">
<span>npm-dedupe</span>
<span class="version">@10.8.0</span>
<span class="version">@10.8.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----1080">
<h1 id="----npm-deprecate----1081">
<span>npm-deprecate</span>
<span class="version">@10.8.0</span>
<span class="version">@10.8.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----1080">
<h1 id="----npm-diff----1081">
<span>npm-diff</span>
<span class="version">@10.8.0</span>
<span class="version">@10.8.1</span>
</h1>
<span class="description">The registry diff command</span>
</header>
@ -334,10 +334,11 @@ of the current working directory.</li>
</ul>
<p>If you ask npm to install a package and don't tell it a specific version,
then it will install the specified tag.</p>
<p>Also the tag that is added to the package@version specified by the <code>npm tag</code>
command, if no explicit tag is given.</p>
<p>It is the tag added to the package@version specified in the <code>npm dist-tag add</code> command, if no explicit tag is given.</p>
<p>When used by the <code>npm diff</code> command, this is the tag used to fetch the
tarball that will be compared with the local files by default.</p>
<p>If used in the <code>npm publish</code> command, this is the tag that will be added to
the package submitted to the registry.</p>
<h4 id="workspace"><code>workspace</code></h4>
<ul>
<li>Default:</li>

View File

@ -141,9 +141,9 @@ npm command-line interface
<section id="content">
<header class="title">
<h1 id="----npm-dist-tag----1080">
<h1 id="----npm-dist-tag----1081">
<span>npm-dist-tag</span>
<span class="version">@10.8.0</span>
<span class="version">@10.8.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----1080">
<h1 id="----npm-docs----1081">
<span>npm-docs</span>
<span class="version">@10.8.0</span>
<span class="version">@10.8.1</span>
</h1>
<span class="description">Open documentation for a package in a web browser</span>
</header>

View File

@ -141,9 +141,9 @@ npm command-line interface
<section id="content">
<header class="title">
<h1 id="----npm-doctor----1080">
<h1 id="----npm-doctor----1081">
<span>npm-doctor</span>
<span class="version">@10.8.0</span>
<span class="version">@10.8.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----1080">
<h1 id="----npm-edit----1081">
<span>npm-edit</span>
<span class="version">@10.8.0</span>
<span class="version">@10.8.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----1080">
<h1 id="----npm-exec----1081">
<span>npm-exec</span>
<span class="version">@10.8.0</span>
<span class="version">@10.8.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----1080">
<h1 id="----npm-explain----1081">
<span>npm-explain</span>
<span class="version">@10.8.0</span>
<span class="version">@10.8.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----1080">
<h1 id="----npm-explore----1081">
<span>npm-explore</span>
<span class="version">@10.8.0</span>
<span class="version">@10.8.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----1080">
<h1 id="----npm-find-dupes----1081">
<span>npm-find-dupes</span>
<span class="version">@10.8.0</span>
<span class="version">@10.8.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----1080">
<h1 id="----npm-fund----1081">
<span>npm-fund</span>
<span class="version">@10.8.0</span>
<span class="version">@10.8.1</span>
</h1>
<span class="description">Retrieve funding information</span>
</header>

View File

@ -141,9 +141,9 @@ npm command-line interface
<section id="content">
<header class="title">
<h1 id="----npm-help-search----1080">
<h1 id="----npm-help-search----1081">
<span>npm-help-search</span>
<span class="version">@10.8.0</span>
<span class="version">@10.8.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----1080">
<h1 id="----npm-help----1081">
<span>npm-help</span>
<span class="version">@10.8.0</span>
<span class="version">@10.8.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-hook----1080">
<h1 id="----npm-hook----1081">
<span>npm-hook</span>
<span class="version">@10.8.0</span>
<span class="version">@10.8.1</span>
</h1>
<span class="description">Manage registry hooks</span>
</header>

View File

@ -141,9 +141,9 @@ npm command-line interface
<section id="content">
<header class="title">
<h1 id="----npm-init----1080">
<h1 id="----npm-init----1081">
<span>npm-init</span>
<span class="version">@10.8.0</span>
<span class="version">@10.8.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----1080">
<h1 id="----npm-install-ci-test----1081">
<span>npm-install-ci-test</span>
<span class="version">@10.8.0</span>
<span class="version">@10.8.1</span>
</h1>
<span class="description">Install a project with a clean slate and run tests</span>
</header>

View File

@ -141,9 +141,9 @@ npm command-line interface
<section id="content">
<header class="title">
<h1 id="----npm-install-test----1080">
<h1 id="----npm-install-test----1081">
<span>npm-install-test</span>
<span class="version">@10.8.0</span>
<span class="version">@10.8.1</span>
</h1>
<span class="description">Install package(s) and run tests</span>
</header>

View File

@ -141,9 +141,9 @@ npm command-line interface
<section id="content">
<header class="title">
<h1 id="----npm-install----1080">
<h1 id="----npm-install----1081">
<span>npm-install</span>
<span class="version">@10.8.0</span>
<span class="version">@10.8.1</span>
</h1>
<span class="description">Install a package</span>
</header>

View File

@ -141,9 +141,9 @@ npm command-line interface
<section id="content">
<header class="title">
<h1 id="----npm-link----1080">
<h1 id="----npm-link----1081">
<span>npm-link</span>
<span class="version">@10.8.0</span>
<span class="version">@10.8.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----1080">
<h1 id="----npm-login----1081">
<span>npm-login</span>
<span class="version">@10.8.0</span>
<span class="version">@10.8.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----1080">
<h1 id="----npm-logout----1081">
<span>npm-logout</span>
<span class="version">@10.8.0</span>
<span class="version">@10.8.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----1080">
<h1 id="----npm-ls----1081">
<span>npm-ls</span>
<span class="version">@10.8.0</span>
<span class="version">@10.8.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@10.8.0 /path/to/npm
<pre><code class="language-bash">npm@10.8.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----1080">
<h1 id="----npm-org----1081">
<span>npm-org</span>
<span class="version">@10.8.0</span>
<span class="version">@10.8.1</span>
</h1>
<span class="description">Manage orgs</span>
</header>

View File

@ -141,9 +141,9 @@ npm command-line interface
<section id="content">
<header class="title">
<h1 id="----npm-outdated----1080">
<h1 id="----npm-outdated----1081">
<span>npm-outdated</span>
<span class="version">@10.8.0</span>
<span class="version">@10.8.1</span>
</h1>
<span class="description">Check for outdated packages</span>
</header>

View File

@ -141,9 +141,9 @@ npm command-line interface
<section id="content">
<header class="title">
<h1 id="----npm-owner----1080">
<h1 id="----npm-owner----1081">
<span>npm-owner</span>
<span class="version">@10.8.0</span>
<span class="version">@10.8.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----1080">
<h1 id="----npm-pack----1081">
<span>npm-pack</span>
<span class="version">@10.8.0</span>
<span class="version">@10.8.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----1080">
<h1 id="----npm-ping----1081">
<span>npm-ping</span>
<span class="version">@10.8.0</span>
<span class="version">@10.8.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----1080">
<h1 id="----npm-pkg----1081">
<span>npm-pkg</span>
<span class="version">@10.8.0</span>
<span class="version">@10.8.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----1080">
<h1 id="----npm-prefix----1081">
<span>npm-prefix</span>
<span class="version">@10.8.0</span>
<span class="version">@10.8.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----1080">
<h1 id="----npm-profile----1081">
<span>npm-profile</span>
<span class="version">@10.8.0</span>
<span class="version">@10.8.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----1080">
<h1 id="----npm-prune----1081">
<span>npm-prune</span>
<span class="version">@10.8.0</span>
<span class="version">@10.8.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----1080">
<h1 id="----npm-publish----1081">
<span>npm-publish</span>
<span class="version">@10.8.0</span>
<span class="version">@10.8.1</span>
</h1>
<span class="description">Publish a package</span>
</header>
@ -233,10 +233,11 @@ built.</p>
</ul>
<p>If you ask npm to install a package and don't tell it a specific version,
then it will install the specified tag.</p>
<p>Also the tag that is added to the package@version specified by the <code>npm tag</code>
command, if no explicit tag is given.</p>
<p>It is the tag added to the package@version specified in the <code>npm dist-tag add</code> command, if no explicit tag is given.</p>
<p>When used by the <code>npm diff</code> command, this is the tag used to fetch the
tarball that will be compared with the local files by default.</p>
<p>If used in the <code>npm publish</code> command, this is the tag that will be added to
the package submitted to the registry.</p>
<h4 id="access"><code>access</code></h4>
<ul>
<li>Default: 'public' for new packages, existing packages it will not change the

View File

@ -141,9 +141,9 @@ npm command-line interface
<section id="content">
<header class="title">
<h1 id="----npm-query----1080">
<h1 id="----npm-query----1081">
<span>npm-query</span>
<span class="version">@10.8.0</span>
<span class="version">@10.8.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----1080">
<h1 id="----npm-rebuild----1081">
<span>npm-rebuild</span>
<span class="version">@10.8.0</span>
<span class="version">@10.8.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----1080">
<h1 id="----npm-repo----1081">
<span>npm-repo</span>
<span class="version">@10.8.0</span>
<span class="version">@10.8.1</span>
</h1>
<span class="description">Open package repository page in the browser</span>
</header>

View File

@ -141,9 +141,9 @@ npm command-line interface
<section id="content">
<header class="title">
<h1 id="----npm-restart----1080">
<h1 id="----npm-restart----1081">
<span>npm-restart</span>
<span class="version">@10.8.0</span>
<span class="version">@10.8.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----1080">
<h1 id="----npm-root----1081">
<span>npm-root</span>
<span class="version">@10.8.0</span>
<span class="version">@10.8.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-script----1080">
<h1 id="----npm-run-script----1081">
<span>npm-run-script</span>
<span class="version">@10.8.0</span>
<span class="version">@10.8.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----1080">
<h1 id="----npm-sbom----1081">
<span>npm-sbom</span>
<span class="version">@10.8.0</span>
<span class="version">@10.8.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----1080">
<h1 id="----npm-search----1081">
<span>npm-search</span>
<span class="version">@10.8.0</span>
<span class="version">@10.8.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----1080">
<h1 id="----npm-shrinkwrap----1081">
<span>npm-shrinkwrap</span>
<span class="version">@10.8.0</span>
<span class="version">@10.8.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----1080">
<h1 id="----npm-star----1081">
<span>npm-star</span>
<span class="version">@10.8.0</span>
<span class="version">@10.8.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----1080">
<h1 id="----npm-stars----1081">
<span>npm-stars</span>
<span class="version">@10.8.0</span>
<span class="version">@10.8.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----1080">
<h1 id="----npm-start----1081">
<span>npm-start</span>
<span class="version">@10.8.0</span>
<span class="version">@10.8.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----1080">
<h1 id="----npm-stop----1081">
<span>npm-stop</span>
<span class="version">@10.8.0</span>
<span class="version">@10.8.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----1080">
<h1 id="----npm-team----1081">
<span>npm-team</span>
<span class="version">@10.8.0</span>
<span class="version">@10.8.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----1080">
<h1 id="----npm-test----1081">
<span>npm-test</span>
<span class="version">@10.8.0</span>
<span class="version">@10.8.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----1080">
<h1 id="----npm-token----1081">
<span>npm-token</span>
<span class="version">@10.8.0</span>
<span class="version">@10.8.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-uninstall----1080">
<h1 id="----npm-uninstall----1081">
<span>npm-uninstall</span>
<span class="version">@10.8.0</span>
<span class="version">@10.8.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----1080">
<h1 id="----npm-unpublish----1081">
<span>npm-unpublish</span>
<span class="version">@10.8.0</span>
<span class="version">@10.8.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----1080">
<h1 id="----npm-unstar----1081">
<span>npm-unstar</span>
<span class="version">@10.8.0</span>
<span class="version">@10.8.1</span>
</h1>
<span class="description">Remove an item from your favorite packages</span>
</header>

View File

@ -141,9 +141,9 @@ npm command-line interface
<section id="content">
<header class="title">
<h1 id="----npm-update----1080">
<h1 id="----npm-update----1081">
<span>npm-update</span>
<span class="version">@10.8.0</span>
<span class="version">@10.8.1</span>
</h1>
<span class="description">Update packages</span>
</header>

View File

@ -141,9 +141,9 @@ npm command-line interface
<section id="content">
<header class="title">
<h1 id="----npm-version----1080">
<h1 id="----npm-version----1081">
<span>npm-version</span>
<span class="version">@10.8.0</span>
<span class="version">@10.8.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----1080">
<h1 id="----npm-view----1081">
<span>npm-view</span>
<span class="version">@10.8.0</span>
<span class="version">@10.8.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----1080">
<h1 id="----npm-whoami----1081">
<span>npm-whoami</span>
<span class="version">@10.8.0</span>
<span class="version">@10.8.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----1080">
<h1 id="----npm----1081">
<span>npm</span>
<span class="version">@10.8.0</span>
<span class="version">@10.8.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>10.8.0</p>
<p>10.8.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----1080">
<h1 id="----npx----1081">
<span>npx</span>
<span class="version">@10.8.0</span>
<span class="version">@10.8.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----1080">
<h1 id="----folders----1081">
<span>folders</span>
<span class="version">@10.8.0</span>
<span class="version">@10.8.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="----install----1080">
<h1 id="----install----1081">
<span>install</span>
<span class="version">@10.8.0</span>
<span class="version">@10.8.1</span>
</h1>
<span class="description">Download and install node and npm</span>
</header>

View File

@ -141,9 +141,9 @@ npm command-line interface
<section id="content">
<header class="title">
<h1 id="----folders----1080">
<h1 id="----folders----1081">
<span>folders</span>
<span class="version">@10.8.0</span>
<span class="version">@10.8.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----1080">
<h1 id="----packagejson----1081">
<span>package.json</span>
<span class="version">@10.8.0</span>
<span class="version">@10.8.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----1080">
<h1 id="----npm-shrinkwrapjson----1081">
<span>npm-shrinkwrap.json</span>
<span class="version">@10.8.0</span>
<span class="version">@10.8.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----1080">
<h1 id="----npmrc----1081">
<span>npmrc</span>
<span class="version">@10.8.0</span>
<span class="version">@10.8.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----1080">
<h1 id="----packagejson----1081">
<span>package.json</span>
<span class="version">@10.8.0</span>
<span class="version">@10.8.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----1080">
<h1 id="----package-lockjson----1081">
<span>package-lock.json</span>
<span class="version">@10.8.0</span>
<span class="version">@10.8.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----1080">
<h1 id="----config----1081">
<span>config</span>
<span class="version">@10.8.0</span>
<span class="version">@10.8.1</span>
</h1>
<span class="description">More than you probably want to know about npm configuration</span>
</header>
@ -1273,10 +1273,11 @@ via https.</p>
</ul>
<p>If you ask npm to install a package and don't tell it a specific version,
then it will install the specified tag.</p>
<p>Also the tag that is added to the package@version specified by the <code>npm tag</code>
command, if no explicit tag is given.</p>
<p>It is the tag added to the package@version specified in the <code>npm dist-tag add</code> command, if no explicit tag is given.</p>
<p>When used by the <code>npm diff</code> command, this is the tag used to fetch the
tarball that will be compared with the local files by default.</p>
<p>If used in the <code>npm publish</code> command, this is the tag that will be added to
the package submitted to the registry.</p>
<h4 id="tag-version-prefix"><code>tag-version-prefix</code></h4>
<ul>
<li>Default: "v"</li>

View File

@ -141,9 +141,9 @@ npm command-line interface
<section id="content">
<header class="title">
<h1 id="----dependency-selector-syntax--querying----1080">
<h1 id="----dependency-selector-syntax--querying----1081">
<span>Dependency Selector Syntax &amp; Querying</span>
<span class="version">@10.8.0</span>
<span class="version">@10.8.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----1080">
<h1 id="----developers----1081">
<span>developers</span>
<span class="version">@10.8.0</span>
<span class="version">@10.8.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----1080">
<h1 id="----logging----1081">
<span>Logging</span>
<span class="version">@10.8.0</span>
<span class="version">@10.8.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----1080">
<h1 id="----orgs----1081">
<span>orgs</span>
<span class="version">@10.8.0</span>
<span class="version">@10.8.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----1080">
<h1 id="----package-spec----1081">
<span>package-spec</span>
<span class="version">@10.8.0</span>
<span class="version">@10.8.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----1080">
<h1 id="----registry----1081">
<span>registry</span>
<span class="version">@10.8.0</span>
<span class="version">@10.8.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----1080">
<h1 id="----removal----1081">
<span>removal</span>
<span class="version">@10.8.0</span>
<span class="version">@10.8.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----1080">
<h1 id="----scope----1081">
<span>scope</span>
<span class="version">@10.8.0</span>
<span class="version">@10.8.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----1080">
<h1 id="----scripts----1081">
<span>scripts</span>
<span class="version">@10.8.0</span>
<span class="version">@10.8.1</span>
</h1>
<span class="description">How npm handles the "scripts" field</span>
</header>

View File

@ -141,9 +141,9 @@ npm command-line interface
<section id="content">
<header class="title">
<h1 id="----workspaces----1080">
<h1 id="----workspaces----1081">
<span>workspaces</span>
<span class="version">@10.8.0</span>
<span class="version">@10.8.1</span>
</h1>
<span class="description">Working with workspaces</span>
</header>

View File

@ -12,7 +12,7 @@ module.exports = async (process, validateEngines) => {
}
// Patch the global fs module here at the app level
require('graceful-fs').gracefulify(require('fs'))
require('graceful-fs').gracefulify(require('node:fs'))
const satisfies = require('semver/functions/satisfies')
const ExitHandler = require('./exit-handler.js')

View File

@ -6,8 +6,8 @@ const ciInfo = require('ci-info')
const gt = require('semver/functions/gt')
const gte = require('semver/functions/gte')
const parse = require('semver/functions/parse')
const { stat, writeFile } = require('fs/promises')
const { resolve } = require('path')
const { stat, writeFile } = require('node:fs/promises')
const { resolve } = require('node:path')
// update check frequency
const DAILY = 1000 * 60 * 60 * 24

View File

@ -208,7 +208,7 @@ class Access extends BaseCommand {
outputs[item] = lookup[val] || val
}
if (this.npm.config.get('json')) {
output.standard(JSON.stringify(outputs, null, 2))
output.buffer(outputs)
} else {
for (const item of Object.keys(outputs).sort(localeCompare)) {
if (!limiter || limiter === item) {

View File

@ -1,7 +1,7 @@
const cacache = require('cacache')
const pacote = require('pacote')
const fs = require('fs/promises')
const { join } = require('path')
const fs = require('node:fs/promises')
const { join } = require('node:path')
const semver = require('semver')
const BaseCommand = require('../base-cmd.js')
const npa = require('npm-package-arg')
@ -152,15 +152,20 @@ class Cache extends BaseCommand {
throw this.usageError('First argument to `add` is required')
}
return Promise.all(args.map(spec => {
await Promise.all(args.map(async spec => {
log.silly('cache add', 'spec', spec)
// we ask pacote for the thing, and then just throw the data
// away so that it tee-pipes it into the cache like it does
// for a normal request.
return pacote.tarball.stream(spec, stream => {
await pacote.tarball.stream(spec, stream => {
stream.resume()
return stream.promise()
}, { ...this.npm.flatOptions })
await pacote.manifest(spec, {
...this.npm.flatOptions,
fullMetadata: true,
})
}))
}

View File

@ -1,9 +1,11 @@
const reifyFinish = require('../utils/reify-finish.js')
const runScript = require('@npmcli/run-script')
const fs = require('fs/promises')
const fs = require('node:fs/promises')
const path = require('node:path')
const { log, time } = require('proc-log')
const validateLockfile = require('../utils/validate-lockfile.js')
const ArboristWorkspaceCmd = require('../arborist-cmd.js')
const getWorkspaces = require('../utils/get-workspaces.js')
class CI extends ArboristWorkspaceCmd {
static description = 'Clean install a project'
@ -76,14 +78,22 @@ class CI extends ArboristWorkspaceCmd {
const dryRun = this.npm.config.get('dry-run')
if (!dryRun) {
const workspacePaths = await getWorkspaces([], {
path: this.npm.localPrefix,
includeWorkspaceRoot: true,
})
// Only remove node_modules after we've successfully loaded the virtual
// tree and validated the lockfile
await time.start('npm-ci:rm', async () => {
const path = `${where}/node_modules`
// get the list of entries so we can skip the glob for performance
const entries = await fs.readdir(path, null).catch(() => [])
return Promise.all(entries.map(f => fs.rm(`${path}/${f}`,
{ force: true, recursive: true })))
return await Promise.all([...workspacePaths.values()].map(async modulePath => {
const fullPath = path.join(modulePath, 'node_modules')
// get the list of entries so we can skip the glob for performance
const entries = await fs.readdir(fullPath, null).catch(() => [])
return Promise.all(entries.map(folder => {
return fs.rm(path.join(fullPath, folder), { force: true, recursive: true })
}))
}))
})
}

View File

@ -28,9 +28,9 @@
// one per line for the shell completion method to consume in IFS=$'\n' mode
// as an array.
const fs = require('fs/promises')
const fs = require('node:fs/promises')
const nopt = require('nopt')
const { resolve } = require('path')
const { resolve } = require('node:path')
const { output } = require('proc-log')
const Npm = require('../npm.js')
const { definitions, shorthands } = require('@npmcli/config/lib/definitions')

View File

@ -403,7 +403,7 @@ ${defData}
publicConf[key] = value
}
output.standard(JSON.stringify(publicConf, null, 2))
output.buffer(publicConf)
}
}

View File

@ -1,4 +1,4 @@
const { resolve } = require('path')
const { resolve } = require('node:path')
const semver = require('semver')
const libnpmdiff = require('libnpmdiff')
const npa = require('npm-package-arg')

View File

@ -1,9 +1,9 @@
const cacache = require('cacache')
const { access, lstat, readdir, constants: { R_OK, W_OK, X_OK } } = require('fs/promises')
const { access, lstat, readdir, constants: { R_OK, W_OK, X_OK } } = require('node:fs/promises')
const fetch = require('make-fetch-happen')
const which = require('which')
const pacote = require('pacote')
const { resolve } = require('path')
const { resolve } = require('node:path')
const semver = require('semver')
const { log, output } = require('proc-log')
const ping = require('../utils/ping.js')

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