deps: upgrade npm to 10.8.3

PR-URL: https://github.com/nodejs/node/pull/54619
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
npm CLI robot 2024-09-07 23:09:40 -07:00 committed by GitHub
parent 67357ba8ff
commit 5338533373
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
279 changed files with 4498 additions and 701 deletions

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

View File

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

View File

@ -29,7 +29,7 @@ Environment variables can be replaced using `${VARIABLE_NAME}`. For
example:
```bash
prefix = ${HOME}/.npm-packages
cache = ${HOME}/.npm-packages
```
Each of these files is loaded, and config options are resolved in priority
@ -120,10 +120,13 @@ _authToken=MYTOKEN
@myorg:registry=https://somewhere-else.com/myorg
@another:registry=https://somewhere-else.com/another
//registry.npmjs.org/:_authToken=MYTOKEN
; would apply to both @myorg and @another
; //somewhere-else.com/:_authToken=MYTOKEN
//somewhere-else.com/:_authToken=MYTOKEN
; would apply only to @myorg
//somewhere-else.com/myorg/:_authToken=MYTOKEN1
; would apply only to @another
//somewhere-else.com/another/:_authToken=MYTOKEN2
```

View File

@ -617,6 +617,7 @@ See [semver](https://github.com/npm/node-semver#versions) for more details about
* `tag` A specific version tagged and published as `tag` See [`npm
dist-tag`](/commands/npm-dist-tag)
* `path/path/path` See [Local Paths](#local-paths) below
* `npm:@scope/pkg@version` Custom alias for a pacakge See [`package-spec`](/using-npm/package-spec#aliases)
For example, these are all valid:
@ -634,7 +635,8 @@ For example, these are all valid:
"two": "2.x",
"thr": "3.3.x",
"lat": "latest",
"dyl": "file:../dyl"
"dyl": "file:../dyl",
"kpg": "npm:pkg@1.0.0"
}
}
```

View File

@ -141,9 +141,9 @@ npm command-line interface
<section id="content">
<header class="title">
<h1 id="----npm-access----1082">
<h1 id="----npm-access----1083">
<span>npm-access</span>
<span class="version">@10.8.2</span>
<span class="version">@10.8.3</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----1082">
<h1 id="----npm-adduser----1083">
<span>npm-adduser</span>
<span class="version">@10.8.2</span>
<span class="version">@10.8.3</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----1082">
<h1 id="----npm-audit----1083">
<span>npm-audit</span>
<span class="version">@10.8.2</span>
<span class="version">@10.8.3</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----1082">
<h1 id="----npm-bugs----1083">
<span>npm-bugs</span>
<span class="version">@10.8.2</span>
<span class="version">@10.8.3</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----1082">
<h1 id="----npm-cache----1083">
<span>npm-cache</span>
<span class="version">@10.8.2</span>
<span class="version">@10.8.3</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----1082">
<h1 id="----npm-ci----1083">
<span>npm-ci</span>
<span class="version">@10.8.2</span>
<span class="version">@10.8.3</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----1082">
<h1 id="----npm-completion----1083">
<span>npm-completion</span>
<span class="version">@10.8.2</span>
<span class="version">@10.8.3</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----1082">
<h1 id="----npm-config----1083">
<span>npm-config</span>
<span class="version">@10.8.2</span>
<span class="version">@10.8.3</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----1082">
<h1 id="----npm-dedupe----1083">
<span>npm-dedupe</span>
<span class="version">@10.8.2</span>
<span class="version">@10.8.3</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----1082">
<h1 id="----npm-deprecate----1083">
<span>npm-deprecate</span>
<span class="version">@10.8.2</span>
<span class="version">@10.8.3</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----1082">
<h1 id="----npm-diff----1083">
<span>npm-diff</span>
<span class="version">@10.8.2</span>
<span class="version">@10.8.3</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----1082">
<h1 id="----npm-dist-tag----1083">
<span>npm-dist-tag</span>
<span class="version">@10.8.2</span>
<span class="version">@10.8.3</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----1082">
<h1 id="----npm-docs----1083">
<span>npm-docs</span>
<span class="version">@10.8.2</span>
<span class="version">@10.8.3</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----1082">
<h1 id="----npm-doctor----1083">
<span>npm-doctor</span>
<span class="version">@10.8.2</span>
<span class="version">@10.8.3</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----1082">
<h1 id="----npm-edit----1083">
<span>npm-edit</span>
<span class="version">@10.8.2</span>
<span class="version">@10.8.3</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----1082">
<h1 id="----npm-exec----1083">
<span>npm-exec</span>
<span class="version">@10.8.2</span>
<span class="version">@10.8.3</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----1082">
<h1 id="----npm-explain----1083">
<span>npm-explain</span>
<span class="version">@10.8.2</span>
<span class="version">@10.8.3</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----1082">
<h1 id="----npm-explore----1083">
<span>npm-explore</span>
<span class="version">@10.8.2</span>
<span class="version">@10.8.3</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----1082">
<h1 id="----npm-find-dupes----1083">
<span>npm-find-dupes</span>
<span class="version">@10.8.2</span>
<span class="version">@10.8.3</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----1082">
<h1 id="----npm-fund----1083">
<span>npm-fund</span>
<span class="version">@10.8.2</span>
<span class="version">@10.8.3</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----1082">
<h1 id="----npm-help-search----1083">
<span>npm-help-search</span>
<span class="version">@10.8.2</span>
<span class="version">@10.8.3</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----1082">
<h1 id="----npm-help----1083">
<span>npm-help</span>
<span class="version">@10.8.2</span>
<span class="version">@10.8.3</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----1082">
<h1 id="----npm-hook----1083">
<span>npm-hook</span>
<span class="version">@10.8.2</span>
<span class="version">@10.8.3</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----1082">
<h1 id="----npm-init----1083">
<span>npm-init</span>
<span class="version">@10.8.2</span>
<span class="version">@10.8.3</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----1082">
<h1 id="----npm-install-ci-test----1083">
<span>npm-install-ci-test</span>
<span class="version">@10.8.2</span>
<span class="version">@10.8.3</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----1082">
<h1 id="----npm-install-test----1083">
<span>npm-install-test</span>
<span class="version">@10.8.2</span>
<span class="version">@10.8.3</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----1082">
<h1 id="----npm-install----1083">
<span>npm-install</span>
<span class="version">@10.8.2</span>
<span class="version">@10.8.3</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----1082">
<h1 id="----npm-link----1083">
<span>npm-link</span>
<span class="version">@10.8.2</span>
<span class="version">@10.8.3</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----1082">
<h1 id="----npm-login----1083">
<span>npm-login</span>
<span class="version">@10.8.2</span>
<span class="version">@10.8.3</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----1082">
<h1 id="----npm-logout----1083">
<span>npm-logout</span>
<span class="version">@10.8.2</span>
<span class="version">@10.8.3</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----1082">
<h1 id="----npm-ls----1083">
<span>npm-ls</span>
<span class="version">@10.8.2</span>
<span class="version">@10.8.3</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.2 /path/to/npm
<pre><code class="language-bash">npm@10.8.3 /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----1082">
<h1 id="----npm-org----1083">
<span>npm-org</span>
<span class="version">@10.8.2</span>
<span class="version">@10.8.3</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----1082">
<h1 id="----npm-outdated----1083">
<span>npm-outdated</span>
<span class="version">@10.8.2</span>
<span class="version">@10.8.3</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----1082">
<h1 id="----npm-owner----1083">
<span>npm-owner</span>
<span class="version">@10.8.2</span>
<span class="version">@10.8.3</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----1082">
<h1 id="----npm-pack----1083">
<span>npm-pack</span>
<span class="version">@10.8.2</span>
<span class="version">@10.8.3</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----1082">
<h1 id="----npm-ping----1083">
<span>npm-ping</span>
<span class="version">@10.8.2</span>
<span class="version">@10.8.3</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----1082">
<h1 id="----npm-pkg----1083">
<span>npm-pkg</span>
<span class="version">@10.8.2</span>
<span class="version">@10.8.3</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----1082">
<h1 id="----npm-prefix----1083">
<span>npm-prefix</span>
<span class="version">@10.8.2</span>
<span class="version">@10.8.3</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----1082">
<h1 id="----npm-profile----1083">
<span>npm-profile</span>
<span class="version">@10.8.2</span>
<span class="version">@10.8.3</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----1082">
<h1 id="----npm-prune----1083">
<span>npm-prune</span>
<span class="version">@10.8.2</span>
<span class="version">@10.8.3</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----1082">
<h1 id="----npm-publish----1083">
<span>npm-publish</span>
<span class="version">@10.8.2</span>
<span class="version">@10.8.3</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----1082">
<h1 id="----npm-query----1083">
<span>npm-query</span>
<span class="version">@10.8.2</span>
<span class="version">@10.8.3</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----1082">
<h1 id="----npm-rebuild----1083">
<span>npm-rebuild</span>
<span class="version">@10.8.2</span>
<span class="version">@10.8.3</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----1082">
<h1 id="----npm-repo----1083">
<span>npm-repo</span>
<span class="version">@10.8.2</span>
<span class="version">@10.8.3</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----1082">
<h1 id="----npm-restart----1083">
<span>npm-restart</span>
<span class="version">@10.8.2</span>
<span class="version">@10.8.3</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----1082">
<h1 id="----npm-root----1083">
<span>npm-root</span>
<span class="version">@10.8.2</span>
<span class="version">@10.8.3</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----1082">
<h1 id="----npm-run-script----1083">
<span>npm-run-script</span>
<span class="version">@10.8.2</span>
<span class="version">@10.8.3</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----1082">
<h1 id="----npm-sbom----1083">
<span>npm-sbom</span>
<span class="version">@10.8.2</span>
<span class="version">@10.8.3</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----1082">
<h1 id="----npm-search----1083">
<span>npm-search</span>
<span class="version">@10.8.2</span>
<span class="version">@10.8.3</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----1082">
<h1 id="----npm-shrinkwrap----1083">
<span>npm-shrinkwrap</span>
<span class="version">@10.8.2</span>
<span class="version">@10.8.3</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----1082">
<h1 id="----npm-star----1083">
<span>npm-star</span>
<span class="version">@10.8.2</span>
<span class="version">@10.8.3</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----1082">
<h1 id="----npm-stars----1083">
<span>npm-stars</span>
<span class="version">@10.8.2</span>
<span class="version">@10.8.3</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----1082">
<h1 id="----npm-start----1083">
<span>npm-start</span>
<span class="version">@10.8.2</span>
<span class="version">@10.8.3</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----1082">
<h1 id="----npm-stop----1083">
<span>npm-stop</span>
<span class="version">@10.8.2</span>
<span class="version">@10.8.3</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----1082">
<h1 id="----npm-team----1083">
<span>npm-team</span>
<span class="version">@10.8.2</span>
<span class="version">@10.8.3</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----1082">
<h1 id="----npm-test----1083">
<span>npm-test</span>
<span class="version">@10.8.2</span>
<span class="version">@10.8.3</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----1082">
<h1 id="----npm-token----1083">
<span>npm-token</span>
<span class="version">@10.8.2</span>
<span class="version">@10.8.3</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----1082">
<h1 id="----npm-uninstall----1083">
<span>npm-uninstall</span>
<span class="version">@10.8.2</span>
<span class="version">@10.8.3</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----1082">
<h1 id="----npm-unpublish----1083">
<span>npm-unpublish</span>
<span class="version">@10.8.2</span>
<span class="version">@10.8.3</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----1082">
<h1 id="----npm-unstar----1083">
<span>npm-unstar</span>
<span class="version">@10.8.2</span>
<span class="version">@10.8.3</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----1082">
<h1 id="----npm-update----1083">
<span>npm-update</span>
<span class="version">@10.8.2</span>
<span class="version">@10.8.3</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----1082">
<h1 id="----npm-version----1083">
<span>npm-version</span>
<span class="version">@10.8.2</span>
<span class="version">@10.8.3</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----1082">
<h1 id="----npm-view----1083">
<span>npm-view</span>
<span class="version">@10.8.2</span>
<span class="version">@10.8.3</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----1082">
<h1 id="----npm-whoami----1083">
<span>npm-whoami</span>
<span class="version">@10.8.2</span>
<span class="version">@10.8.3</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----1082">
<h1 id="----npm----1083">
<span>npm</span>
<span class="version">@10.8.2</span>
<span class="version">@10.8.3</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.2</p>
<p>10.8.3</p>
<h3 id="description">Description</h3>
<p>npm is the package manager for the Node JavaScript platform. It puts
modules in place so that node can find them, and manages dependency

View File

@ -141,9 +141,9 @@ npm command-line interface
<section id="content">
<header class="title">
<h1 id="----npx----1082">
<h1 id="----npx----1083">
<span>npx</span>
<span class="version">@10.8.2</span>
<span class="version">@10.8.3</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----1082">
<h1 id="----folders----1083">
<span>folders</span>
<span class="version">@10.8.2</span>
<span class="version">@10.8.3</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----1082">
<h1 id="----install----1083">
<span>install</span>
<span class="version">@10.8.2</span>
<span class="version">@10.8.3</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----1082">
<h1 id="----folders----1083">
<span>folders</span>
<span class="version">@10.8.2</span>
<span class="version">@10.8.3</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----1082">
<h1 id="----packagejson----1083">
<span>package.json</span>
<span class="version">@10.8.2</span>
<span class="version">@10.8.3</span>
</h1>
<span class="description">Specifics of npm's package.json handling</span>
</header>
@ -620,6 +620,7 @@ time tools in your <code>dependencies</code> object.</strong> See <code>devDepe
<li><code>user/repo</code> See 'GitHub URLs' below</li>
<li><code>tag</code> A specific version tagged and published as <code>tag</code> See <a href="../commands/npm-dist-tag.html"><code>npm dist-tag</code></a></li>
<li><code>path/path/path</code> See <a href="#local-paths">Local Paths</a> below</li>
<li><code>npm:@scope/pkg@version</code> Custom alias for a pacakge See <a href="../using-npm/package-spec#aliases.html"><code>package-spec</code></a></li>
</ul>
<p>For example, these are all valid:</p>
<pre><code class="language-json">{
@ -635,7 +636,8 @@ time tools in your <code>dependencies</code> object.</strong> See <code>devDepe
"two": "2.x",
"thr": "3.3.x",
"lat": "latest",
"dyl": "file:../dyl"
"dyl": "file:../dyl",
"kpg": "npm:pkg@1.0.0"
}
}
</code></pre>

View File

@ -141,9 +141,9 @@ npm command-line interface
<section id="content">
<header class="title">
<h1 id="----npm-shrinkwrapjson----1082">
<h1 id="----npm-shrinkwrapjson----1083">
<span>npm-shrinkwrap.json</span>
<span class="version">@10.8.2</span>
<span class="version">@10.8.3</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----1082">
<h1 id="----npmrc----1083">
<span>npmrc</span>
<span class="version">@10.8.2</span>
<span class="version">@10.8.3</span>
</h1>
<span class="description">The npm config files</span>
</header>
@ -171,7 +171,7 @@ user and global npmrc files.</p>
<p>All npm config files are an ini-formatted list of <code>key = value</code> parameters.
Environment variables can be replaced using <code>${VARIABLE_NAME}</code>. For
example:</p>
<pre><code class="language-bash">prefix = ${HOME}/.npm-packages
<pre><code class="language-bash">cache = ${HOME}/.npm-packages
</code></pre>
<p>Each of these files is loaded, and config options are resolved in priority
order. For example, a setting in the userconfig file would override the
@ -238,10 +238,13 @@ _authToken=MYTOKEN
@myorg:registry=https://somewhere-else.com/myorg
@another:registry=https://somewhere-else.com/another
//registry.npmjs.org/:_authToken=MYTOKEN
; would apply to both @myorg and @another
; //somewhere-else.com/:_authToken=MYTOKEN
//somewhere-else.com/:_authToken=MYTOKEN
; would apply only to @myorg
//somewhere-else.com/myorg/:_authToken=MYTOKEN1
; would apply only to @another
//somewhere-else.com/another/:_authToken=MYTOKEN2
</code></pre>

View File

@ -141,9 +141,9 @@ npm command-line interface
<section id="content">
<header class="title">
<h1 id="----packagejson----1082">
<h1 id="----packagejson----1083">
<span>package.json</span>
<span class="version">@10.8.2</span>
<span class="version">@10.8.3</span>
</h1>
<span class="description">Specifics of npm's package.json handling</span>
</header>
@ -620,6 +620,7 @@ time tools in your <code>dependencies</code> object.</strong> See <code>devDepe
<li><code>user/repo</code> See 'GitHub URLs' below</li>
<li><code>tag</code> A specific version tagged and published as <code>tag</code> See <a href="../commands/npm-dist-tag.html"><code>npm dist-tag</code></a></li>
<li><code>path/path/path</code> See <a href="#local-paths">Local Paths</a> below</li>
<li><code>npm:@scope/pkg@version</code> Custom alias for a pacakge See <a href="../using-npm/package-spec#aliases.html"><code>package-spec</code></a></li>
</ul>
<p>For example, these are all valid:</p>
<pre><code class="language-json">{
@ -635,7 +636,8 @@ time tools in your <code>dependencies</code> object.</strong> See <code>devDepe
"two": "2.x",
"thr": "3.3.x",
"lat": "latest",
"dyl": "file:../dyl"
"dyl": "file:../dyl",
"kpg": "npm:pkg@1.0.0"
}
}
</code></pre>

View File

@ -141,9 +141,9 @@ npm command-line interface
<section id="content">
<header class="title">
<h1 id="----package-lockjson----1082">
<h1 id="----package-lockjson----1083">
<span>package-lock.json</span>
<span class="version">@10.8.2</span>
<span class="version">@10.8.3</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----1082">
<h1 id="----config----1083">
<span>config</span>
<span class="version">@10.8.2</span>
<span class="version">@10.8.3</span>
</h1>
<span class="description">More than you probably want to know about npm configuration</span>
</header>

View File

@ -141,9 +141,9 @@ npm command-line interface
<section id="content">
<header class="title">
<h1 id="----dependency-selector-syntax--querying----1082">
<h1 id="----dependency-selector-syntax--querying----1083">
<span>Dependency Selector Syntax &amp; Querying</span>
<span class="version">@10.8.2</span>
<span class="version">@10.8.3</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----1082">
<h1 id="----developers----1083">
<span>developers</span>
<span class="version">@10.8.2</span>
<span class="version">@10.8.3</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----1082">
<h1 id="----logging----1083">
<span>Logging</span>
<span class="version">@10.8.2</span>
<span class="version">@10.8.3</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----1082">
<h1 id="----orgs----1083">
<span>orgs</span>
<span class="version">@10.8.2</span>
<span class="version">@10.8.3</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----1082">
<h1 id="----package-spec----1083">
<span>package-spec</span>
<span class="version">@10.8.2</span>
<span class="version">@10.8.3</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----1082">
<h1 id="----registry----1083">
<span>registry</span>
<span class="version">@10.8.2</span>
<span class="version">@10.8.3</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----1082">
<h1 id="----removal----1083">
<span>removal</span>
<span class="version">@10.8.2</span>
<span class="version">@10.8.3</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----1082">
<h1 id="----scope----1083">
<span>scope</span>
<span class="version">@10.8.2</span>
<span class="version">@10.8.3</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----1082">
<h1 id="----scripts----1083">
<span>scripts</span>
<span class="version">@10.8.2</span>
<span class="version">@10.8.3</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----1082">
<h1 id="----workspaces----1083">
<span>workspaces</span>
<span class="version">@10.8.2</span>
<span class="version">@10.8.3</span>
</h1>
<span class="description">Working with workspaces</span>
</header>

View File

@ -66,8 +66,9 @@ class ExitHandler {
}
#handleProcessExit (code) {
// Force exit code to a number if it has not been set
const exitCode = typeof code === 'number' ? code : (this.#exited ? 0 : 1)
const numCode = Number(code) || 0
// Always exit w/ a non-zero code if exit handler was not called
const exitCode = this.#exited ? numCode : (numCode || 1)
this.#process.exitCode = exitCode
if (this.#notLoadedOrExited) {

View File

@ -95,7 +95,7 @@ class Init extends BaseCommand {
await this.update(workspacesPaths)
}
async execCreate (args, path = process.cwd()) {
async execCreate (args, runPath = process.cwd()) {
const [initerName, ...otherArgs] = args
let packageName = initerName
@ -129,7 +129,6 @@ class Init extends BaseCommand {
globalBin,
chalk,
} = this.npm
const runPath = path
const scriptShell = this.npm.config.get('script-shell') || undefined
const yes = this.npm.config.get('yes')
@ -140,7 +139,7 @@ class Init extends BaseCommand {
globalBin,
output,
chalk,
path,
path: this.npm.localPrefix,
runPath,
scriptShell,
yes,

View File

@ -46,7 +46,12 @@ class Publish extends BaseCommand {
await this.#publish(args)
}
async execWorkspaces () {
async execWorkspaces (args) {
const useWorkspaces = args.length === 0 || args.includes('.')
if (!useWorkspaces) {
log.warn('Ignoring workspaces for specified package(s)')
return this.exec(args)
}
await this.setWorkspaces()
for (const [name, workspace] of this.workspaces.entries()) {

View File

@ -165,8 +165,10 @@ class RunScript extends BaseCommand {
return
}
// TODO this is missing things like prepare, prepublishOnly, and dependencies
const cmdList = [
'prepare', 'prepublishOnly',
'prepack', 'postpack',
'dependencies',
'preinstall', 'install', 'postinstall',
'prepublish', 'publish', 'postpublish',
'prerestart', 'restart', 'postrestart',

View File

@ -1,4 +1,4 @@
.TH "NPM-ACCESS" "1" "July 2024" "NPM@10.8.2" ""
.TH "NPM-ACCESS" "1" "August 2024" "NPM@10.8.3" ""
.SH "NAME"
\fBnpm-access\fR - Set access level on published packages
.SS "Synopsis"

View File

@ -1,4 +1,4 @@
.TH "NPM-ADDUSER" "1" "July 2024" "NPM@10.8.2" ""
.TH "NPM-ADDUSER" "1" "August 2024" "NPM@10.8.3" ""
.SH "NAME"
\fBnpm-adduser\fR - Add a registry user account
.SS "Synopsis"

View File

@ -1,4 +1,4 @@
.TH "NPM-AUDIT" "1" "July 2024" "NPM@10.8.2" ""
.TH "NPM-AUDIT" "1" "August 2024" "NPM@10.8.3" ""
.SH "NAME"
\fBnpm-audit\fR - Run a security audit
.SS "Synopsis"

View File

@ -1,4 +1,4 @@
.TH "NPM-BUGS" "1" "July 2024" "NPM@10.8.2" ""
.TH "NPM-BUGS" "1" "August 2024" "NPM@10.8.3" ""
.SH "NAME"
\fBnpm-bugs\fR - Report bugs for a package in a web browser
.SS "Synopsis"

View File

@ -1,4 +1,4 @@
.TH "NPM-CACHE" "1" "July 2024" "NPM@10.8.2" ""
.TH "NPM-CACHE" "1" "August 2024" "NPM@10.8.3" ""
.SH "NAME"
\fBnpm-cache\fR - Manipulates packages cache
.SS "Synopsis"

View File

@ -1,4 +1,4 @@
.TH "NPM-CI" "1" "July 2024" "NPM@10.8.2" ""
.TH "NPM-CI" "1" "August 2024" "NPM@10.8.3" ""
.SH "NAME"
\fBnpm-ci\fR - Clean install a project
.SS "Synopsis"

View File

@ -1,4 +1,4 @@
.TH "NPM-COMPLETION" "1" "July 2024" "NPM@10.8.2" ""
.TH "NPM-COMPLETION" "1" "August 2024" "NPM@10.8.3" ""
.SH "NAME"
\fBnpm-completion\fR - Tab Completion for npm
.SS "Synopsis"

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