deps: upgrade npm to 7.12.1

PR-URL: https://github.com/nodejs/node/pull/38628
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Myles Borins <myles.borins@gmail.com>
This commit is contained in:
Ruy Adorno committed 2021-05-12 14:20:21 -04:00
1 parent 89f592cc82
commit aefc621e67
182 files changed
+1141 -890

No files matched your search

+4
View File
@@ -772,3 +772,7 @@ Seth Thomas <seth@emailseth.com>
Andreas <andreas@bielk.se>
Felipe Santos <felipecassiors@gmail.com>
Luigi Pinca <luigipinca@gmail.com>
Marco Sirabella <marco@sirabella.org>
wangsai <wangsai@bootcss.com>
Luke Hefson <luke@github.com>
mrmlnc <mrmlnc@yandex-team.ru>
+92 -2
View File
@@ -1,3 +1,94 @@
## v7.12.1 (2021-05-10)
### BUG FIXES
* [`de49f58f5`](https://github.com/npm/cli/commit/de49f58f55dc2ac3a5057cd492a43c32ae41381e)
[#3216](https://github.com/npm/cli/issues/3216)
fix(contributing): link to proper cli repo
([@mrmlnc](https://github.com/mrmlnc))
* [`1d092144e`](https://github.com/npm/cli/commit/1d092144eaaabff63ac8424b40b2286822be7677)
[#3203](https://github.com/npm/cli/issues/3203)
fix(packages): locale-agnostic string sorting
([@isaacs](https://github.com/isaacs))
* [`0696fca13`](https://github.com/npm/cli/commit/0696fca13d10726e04ca97ff50eef7bd7455a3ab)
[#3209](https://github.com/npm/cli/issues/3209)
fix(view): fix non-registry specs
([@wraithgar](https://github.com/wraithgar))
* [`71ac93597`](https://github.com/npm/cli/commit/71ac935976390e4fd05987ff510049f82bc6e2a9)
[#3206](https://github.com/npm/cli/issues/3206)
chore(github): Convert md issue template to yaml
([@lukehefson](https://github.com/lukehefson))
* [`6fb386d3b`](https://github.com/npm/cli/commit/6fb386d3bfbaa8e4771ff87a08de1f3aa6f9b34d)
[#3201](https://github.com/npm/cli/issues/3201)
fix(tests): increase test fuzziness
([@wraithgar](https://github.com/wraithgar))
* [`f3a662fcd`](https://github.com/npm/cli/commit/f3a662fcd869653f9753aef3d40cc96ed28ed509)
[#3211](https://github.com/npm/cli/issues/3211)
fix(tests): use config defaults
([@wraithgar](https://github.com/wraithgar))
### DEPENDENCIES
* [`285976fd1`](https://github.com/npm/cli/commit/285976fd12f037f59da47307d98df7ebda5278d9)
`@npmcli/arborist@2.4.4`
* fix(reify): properly save spec if prerelease
* [`f9f24d17c`](https://github.com/npm/cli/commit/f9f24d17c29c421de3c9b82c6b98a40268aeb920)
`libnpmexec@1.1.1`
* fix(add): Specify 'en' locale to String.localeCompare
* [`cb9f17499`](https://github.com/npm/cli/commit/cb9f174996dbb4779a1be82890564f9abffb11f4)
`glob@7.1.7`
* force 'en' locale in string sorting
* [`24b4e4a41`](https://github.com/npm/cli/commit/24b4e4a41b451db3de381fac6b719149db14c288)
`ignore-walk@3.0.4`
* Avoid locale-specific sorting issues
* [`1eb7e5c7d`](https://github.com/npm/cli/commit/1eb7e5c7d466293b472c2506c64e5a89ec84ac2f)
`@npmcli/arborist@2.4.3`
* guard against locale-specific sorting
* [`a6a826067`](https://github.com/npm/cli/commit/a6a826067cb46c711521772c2d0158257d54400a)
`npm-packlist@2.2.2`:
* fix(sort): avoid locale-dependent sorting issues
## v7.12.0 (2021-05-06)
### FEATURES
* [`701627c51`](https://github.com/npm/cli/commit/701627c5169934e59da2959d76a49c77278cc9dc)
[#3098](https://github.com/npm/cli/issues/3098)
feat(cache): Allow `add` to accept multiple specs
([@mjsir911](https://github.com/mjsir911))
* [`59171f030`](https://github.com/npm/cli/commit/59171f0304f048a009f1697eec6f74f778bc52ff)
[#3187](https://github.com/npm/cli/issues/3187)
feat(config): add workspaces boolean to user-agent
([@nlf](https://github.com/nlf))
### BUG FIXES
* [`2c9b8713c`](https://github.com/npm/cli/commit/2c9b8713c4c88fbd0c3c48eb0de84dbd7269398f)
[#3182](https://github.com/npm/cli/issues/3182)
fix(docs): fix broken links
([@wangsai](https://github.com/wangsai))
* [`88cbc8c44`](https://github.com/npm/cli/commit/88cbc8c447cbaef20b5a8f19246211ce4918f4d8)
[#3198](https://github.com/npm/cli/issues/3198)
fix(tests): reflect new libnpmexec logic
### DEPENDENCIES
* [`d01ce5e13`](https://github.com/npm/cli/commit/d01ce5e132cb4661698012fd5017753c2bdb660b)
`libnpmexec@1.1.0`:
* feat: add walk up dir lookup to satisfy local bins
* [`81c1dfaaa`](https://github.com/npm/cli/commit/81c1dfaaaf918229316a975aa8075769ffafdb6d)
`@npmcli/arborist@2.4.2`:
* fix(add): save packages in the right place
* fix(reify): do not clean up nodes with no parent
* fix(audit): support alias specs & root package names
* [`87c2303ea`](https://github.com/npm/cli/commit/87c2303eaa6edfa5309da0a30f5ad291b6d57640)
`@npmcli/git@2.0.9`:
* fix(clone): Do not allow git replacement objects by default
* [`99ff40dff`](https://github.com/npm/cli/commit/99ff40dff5e5e55a5d5f045ba90e76c08174ca38)
`npm-packlist@2.2.0`:
* feat(npmignore): Do not force include history, changelogs, notice
* fix(package.json): add missing bin/index.js to files
## v7.11.2 (2021-04-29)
### BUG FIXES
@@ -76,8 +167,8 @@
[#3126](https://github.com/npm/cli/issues/3126)
fix(logout): use isBasicAuth attribute
([@wraithgar](https://github.com/wraithgar))
### DOCUMENTATION
### DOCUMENTATION
* [`c93f1c39e`](https://github.com/npm/cli/commit/c93f1c39e326feff0857712a10ef6183fbafe1ab)
[#3101](https://github.com/npm/cli/issues/3101)
@@ -89,7 +180,6 @@
fix(usage): fix refs to ws shorthand
([@ruyadorno](https://github.com/ruyadorno))
### DEPENDENCIES
* [`83166ebcc`](https://github.com/npm/cli/commit/83166ebcc4ba5e3bf215f08151437d96637f4f33)
+1 -1
View File
@@ -9,7 +9,7 @@ All interactions in the **npm** organization on GitHub are considered to be cove
**1. Clone this repository...**
```bash
$ git clone git@github.com:npm/cli.git
$ git clone git@github.com:npm/cli.git npm
```
**2. Navigate into project & install development-specific dependencies...**
+5 -5
View File
@@ -7,10 +7,10 @@ description: Manipulates packages cache
### Synopsis
```bash
npm cache add <tarball file>
npm cache add <folder>
npm cache add <tarball url>
npm cache add <name>@<version>
npm cache add <tarball file>...
npm cache add <folder>...
npm cache add <tarball url>...
npm cache add <name>@<version>...
npm cache clean
aliases: npm cache clear, npm cache rm
@@ -25,7 +25,7 @@ Note: This command is unaware of workspaces.
Used to add, list, or clean the npm cache folder.
* add:
Add the specified package to the local cache. This command is primarily
Add the specified packages to the local cache. This command is primarily
intended to be used internally by npm, but it can provide a way to
add data to the local installation cache explicitly.
+1 -1
View File
@@ -12,7 +12,7 @@ npm ci
### Description
This command is similar to [`npm install`](/cli-commands/install), except
This command is similar to [`npm install`](/commands/npm-install), except
it's meant to be used in automated environments such as test platforms,
continuous integration, and deployment -- or any situation where you want
to make sure you're doing a clean install of your dependencies.
+4 -4
View File
@@ -74,7 +74,7 @@ Using `npm find-dupes` will run the command in `--dry-run` mode.
### See Also
* [npm find-dupes](/cli-commands/find-dupes)
* [npm ls](/cli-commands/ls)
* [npm update](/cli-commands/update)
* [npm install](/cli-commands/install)
* [npm find-dupes](/commands/npm-find-dupes)
* [npm ls](/commands/npm-ls)
* [npm update](/commands/npm-update)
* [npm install](/commands/npm-install)
+2 -2
View File
@@ -44,5 +44,5 @@ format an empty string.
* [npm publish](/commands/npm-publish)
* [npm registry](/using-npm/registry)
* [npm owner](/cli-commands/owner)
* [npm owner](/cli-commands/adduser)
* [npm owner](/commands/npm-owner)
* [npm owner](/commands/npm-adduser)
-1
View File
@@ -44,5 +44,4 @@ The shell to run for the `npm explore` command.
* [npm folders](/configuring-npm/folders)
* [npm edit](/commands/npm-edit)
* [npm rebuild](/commands/npm-rebuild)
* [npm build](/commands/npm-build)
* [npm install](/commands/npm-install)
+4 -4
View File
@@ -17,8 +17,8 @@ duplications, without actually changing the package tree.
### See Also
* [npm dedupe](/cli-commands/dedupe)
* [npm ls](/cli-commands/ls)
* [npm update](/cli-commands/update)
* [npm install](/cli-commands/install)
* [npm dedupe](/commands/npm-dedupe)
* [npm ls](/commands/npm-ls)
* [npm update](/commands/npm-update)
* [npm install](/commands/npm-install)
-1
View File
@@ -538,7 +538,6 @@ the specific folder structures that npm creates.
* [npm link](/commands/npm-link)
* [npm rebuild](/commands/npm-rebuild)
* [npm scripts](/using-npm/scripts)
* [npm build](/commands/npm-build)
* [npm config](/commands/npm-config)
* [npmrc](/configuring-npm/npmrc)
* [npm registry](/using-npm/registry)
+2 -2
View File
@@ -34,7 +34,7 @@ This removes a package version from the registry, deleting its entry and
removing the tarball.
The npm registry will return an error if you are not [logged
in](/commands/npm-login).
in](/commands/npm-adduser).
If you do not specify a version or if you remove all of a package's
versions then the registry will remove the root package entry entirely.
@@ -52,4 +52,4 @@ passed.
* [npm registry](/using-npm/registry)
* [npm adduser](/commands/npm-adduser)
* [npm owner](/commands/npm-owner)
* [npm login](/commands/npm-login)
* [npm login](/commands/npm-adduser)
+1 -1
View File
@@ -73,7 +73,7 @@ npm view express contributors.name contributors.email
"Person" fields are shown as a string if they would be shown as an
object. So, for example, this will show the list of `npm` contributors in
the shortened string format. (See [`package.json`](/configuring-npm/package.json) for more on this.)
the shortened string format. (See [`package.json`](/configuring-npm/package-json) for more on this.)
```bash
npm view npm contributors
+1 -1
View File
@@ -107,7 +107,7 @@ following help topics:
Create an account or log in. When you do this, npm will store
credentials in the user config file config file.
* publish:
Use the [`npm publish`](/commands/npm-publish`) command to upload your
Use the [`npm publish`](/commands/npm-publish) command to upload your
code to the registry.
#### Configuration
+1 -1
View File
@@ -205,7 +205,7 @@ not be included in the package tarball.
This allows a package maintainer to install all of their dependencies
(and dev dependencies) locally, but only re-publish those items that
cannot be found elsewhere. See [`package.json`](/configuring-npm/package.json) for more information.
cannot be found elsewhere. See [`package.json`](/configuring-npm/package-json) for more information.
### See also
+1 -1
View File
@@ -566,7 +566,7 @@ tarball or git URL.
**Please do not put test harnesses or transpilers or other "development"
time tools in your `dependencies` object.** See `devDependencies`, below.
See [semver](/using-npm/semver#versions) for more details about specifying version ranges.
See [semver](https://github.com/npm/node-semver#versions) for more details about specifying version ranges.
* `version` Must match `version` exactly
* `>version` Must be greater than `version`
+4 -1
View File
@@ -1253,7 +1253,8 @@ Show short usage output about the command specified.
#### `user-agent`
* Default: "npm/{npm-version} node/{node-version} {platform} {arch} {ci}"
* Default: "npm/{npm-version} node/{node-version} {platform} {arch}
workspaces/{workspaces} {ci}"
* Type: String
Sets the User-Agent request header. The following fields are replaced with
@@ -1263,6 +1264,8 @@ their actual counterparts:
* `{node-version}` - The Node.js version in use
* `{platform}` - The value of `process.platform`
* `{arch}` - The value of `process.arch`
* `{workspaces}` - Set to `true` if the `workspaces` or `workspace` options
are set.
* `{ci}` - The value of the `ci-name` config, if set, prefixed with `ci/`, or
an empty string if `ci-name` is empty.
+1 -6
View File
@@ -118,11 +118,6 @@ The advantage of doing these things at `prepublish` time is that they can be don
* `prepare`
#### [`npm env`](/commands/npm-env)
* `env` (You can override the default behavior of `npm env` by defining
a custom `env` entry in your `scripts` object)
#### [`npm install`](/commands/npm-install)
These also run when you run `npm install -g <pkg-name>`
@@ -179,7 +174,7 @@ If there is a `restart` script defined, these events are run, otherwise
* `restart`
* `postrestart`
#### [`npm run <user defined>`](/commands/npm-run)
#### [`npm run <user defined>`](/commands/npm-run-script)
* `pre<user-defined>`
* `<user-defined>`
+5 -5
View File
@@ -145,10 +145,10 @@ npm command-line interface
</section>
<div id="_content"><h3 id="synopsis">Synopsis</h3>
<pre lang="bash"><code>npm cache add &lt;tarball file&gt;
npm cache add &lt;folder&gt;
npm cache add &lt;tarball url&gt;
npm cache add &lt;name&gt;@&lt;version&gt;
<pre lang="bash"><code>npm cache add &lt;tarball file&gt;...
npm cache add &lt;folder&gt;...
npm cache add &lt;tarball url&gt;...
npm cache add &lt;name&gt;@&lt;version&gt;...
npm cache clean
aliases: npm cache clear, npm cache rm
@@ -161,7 +161,7 @@ npm cache verify
<ul>
<li>
<p>add:
Add the specified package to the local cache. This command is primarily
Add the specified packages to the local cache. This command is primarily
intended to be used internally by npm, but it can provide a way to
add data to the local installation cache explicitly.</p>
</li>
+1 -1
View File
@@ -148,7 +148,7 @@ npm command-line interface
<pre lang="bash"><code>npm ci
</code></pre>
<h3 id="description">Description</h3>
<p>This command is similar to <a href="../cli-commands/install.html"><code>npm install</code></a>, except
<p>This command is similar to <a href="../commands/npm-install.html"><code>npm install</code></a>, except
it’s meant to be used in automated environments such as test platforms,
continuous integration, and deployment – or any situation where you want
to make sure you’re doing a clean install of your dependencies.</p>
+4 -4
View File
@@ -193,10 +193,10 @@ result in new modules being installed.</p>
<p>Using <code>npm find-dupes</code> will run the command in <code>--dry-run</code> mode.</p>
<h3 id="see-also">See Also</h3>
<ul>
<li><a href="../cli-commands/find-dupes.html">npm find-dupes</a></li>
<li><a href="../cli-commands/ls.html">npm ls</a></li>
<li><a href="../cli-commands/update.html">npm update</a></li>
<li><a href="../cli-commands/install.html">npm install</a></li>
<li><a href="../commands/npm-find-dupes.html">npm find-dupes</a></li>
<li><a href="../commands/npm-ls.html">npm ls</a></li>
<li><a href="../commands/npm-update.html">npm update</a></li>
<li><a href="../commands/npm-install.html">npm install</a></li>
</ul>
</div>
+2 -2
View File
@@ -169,8 +169,8 @@ format an empty string.</p>
<ul>
<li><a href="../commands/npm-publish.html">npm publish</a></li>
<li><a href="../using-npm/registry.html">npm registry</a></li>
<li><a href="../cli-commands/owner.html">npm owner</a></li>
<li><a href="../cli-commands/adduser.html">npm owner</a></li>
<li><a href="../commands/npm-owner.html">npm owner</a></li>
<li><a href="../commands/npm-adduser.html">npm owner</a></li>
</ul>
</div>
-1
View File
@@ -171,7 +171,6 @@ Windows</li>
<li><a href="../configuring-npm/folders.html">npm folders</a></li>
<li><a href="../commands/npm-edit.html">npm edit</a></li>
<li><a href="../commands/npm-rebuild.html">npm rebuild</a></li>
<li><a href="../commands/npm-build.html">npm build</a></li>
<li><a href="../commands/npm-install.html">npm install</a></li>
</ul>
</div>
+4 -4
View File
@@ -152,10 +152,10 @@ npm command-line interface
duplications, without actually changing the package tree.</p>
<h3 id="see-also">See Also</h3>
<ul>
<li><a href="../cli-commands/dedupe.html">npm dedupe</a></li>
<li><a href="../cli-commands/ls.html">npm ls</a></li>
<li><a href="../cli-commands/update.html">npm update</a></li>
<li><a href="../cli-commands/install.html">npm install</a></li>
<li><a href="../commands/npm-dedupe.html">npm dedupe</a></li>
<li><a href="../commands/npm-ls.html">npm ls</a></li>
<li><a href="../commands/npm-update.html">npm update</a></li>
<li><a href="../commands/npm-install.html">npm install</a></li>
</ul>
</div>
-1
View File
@@ -614,7 +614,6 @@ the specific folder structures that npm creates.</p>
<li><a href="../commands/npm-link.html">npm link</a></li>
<li><a href="../commands/npm-rebuild.html">npm rebuild</a></li>
<li><a href="../using-npm/scripts.html">npm scripts</a></li>
<li><a href="../commands/npm-build.html">npm build</a></li>
<li><a href="../commands/npm-config.html">npm config</a></li>
<li><a href="../configuring-npm/npmrc.html">npmrc</a></li>
<li><a href="../using-npm/registry.html">npm registry</a></li>
+1 -1
View File
@@ -159,7 +159,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 lang="bash"><code>npm@7.11.2 /path/to/npm
<pre lang="bash"><code>npm@7.12.1 /path/to/npm
└─┬ init-package-json@0.0.4
└── promzard@0.1.5
</code></pre>
+2 -2
View File
@@ -159,7 +159,7 @@ want to maintain a package.</p>
<h3 id="description">Description</h3>
<p>This removes a package version from the registry, deleting its entry and
removing the tarball.</p>
<p>The npm registry will return an error if you are not <a href="../commands/npm-login.html">logged
<p>The npm registry will return an error if you are not <a href="../commands/npm-adduser.html">logged
in</a>.</p>
<p>If you do not specify a version or if you remove all of a package’s
versions then the registry will remove the root package entry entirely.</p>
@@ -175,7 +175,7 @@ passed.</p>
<li><a href="../using-npm/registry.html">npm registry</a></li>
<li><a href="../commands/npm-adduser.html">npm adduser</a></li>
<li><a href="../commands/npm-owner.html">npm owner</a></li>
<li><a href="../commands/npm-login.html">npm login</a></li>
<li><a href="../commands/npm-adduser.html">npm login</a></li>
</ul>
</div>
+1 -1
View File
@@ -186,7 +186,7 @@ can do this:</p>
</code></pre>
<p>“Person” fields are shown as a string if they would be shown as an
object. So, for example, this will show the list of <code>npm</code> contributors in
the shortened string format. (See <a href="../configuring-npm/package.json.html"><code>package.json</code></a> for more on this.)</p>
the shortened string format. (See <a href="../configuring-npm/package-json.html"><code>package.json</code></a> for more on this.)</p>
<pre lang="bash"><code>npm view npm contributors
</code></pre>
<p>If a version range is provided, then data will be printed for every
+2 -2
View File
@@ -148,7 +148,7 @@ npm command-line interface
<pre lang="bash"><code>npm &lt;command&gt; [args]
</code></pre>
<h3 id="version">Version</h3>
<p>7.11.2</p>
<p>7.12.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
@@ -222,7 +222,7 @@ done via <a href="../commands/npm-install.html"><code>npm install</code></a></li
Create an account or log in. When you do this, npm will store
credentials in the user config file config file.</li>
<li>publish:
Use the <a href="../commands/npm-publish%60.html"><code>npm publish</code></a> command to upload your
Use the <a href="../commands/npm-publish.html"><code>npm publish</code></a> command to upload your
code to the registry.</li>
</ul>
<h4 id="configuration">Configuration</h4>
+1 -1
View File
@@ -292,7 +292,7 @@ the items there are not in the <code>bundledDependencies</code> array, then they
not be included in the package tarball.</p>
<p>This allows a package maintainer to install all of their dependencies
(and dev dependencies) locally, but only re-publish those items that
cannot be found elsewhere. See <a href="../configuring-npm/package.json.html"><code>package.json</code></a> for more information.</p>
cannot be found elsewhere. See <a href="../configuring-npm/package-json.html"><code>package.json</code></a> for more information.</p>
<h3 id="see-also">See also</h3>
<ul>
<li><a href="../configuring-npm/package-json.html">package.json</a></li>
+1 -1
View File
@@ -567,7 +567,7 @@ space-separated descriptors. Dependencies can also be identified with a
tarball or git URL.</p>
<p><strong>Please do not put test harnesses or transpilers or other “development”
time tools in your <code>dependencies</code> object.</strong> See <code>devDependencies</code>, below.</p>
<p>See <a href="../using-npm/semver#versions.html">semver</a> for more details about specifying version ranges.</p>
<p>See <a href="https://github.com/npm/node-semver#versions">semver</a> for more details about specifying version ranges.</p>
<ul>
<li><code>version</code> Must match <code>version</code> exactly</li>
<li><code>&gt;version</code> Must be greater than <code>version</code></li>
+4 -1
View File
@@ -1193,7 +1193,8 @@ of npm than the latest.</p>
<p>Show short usage output about the command specified.</p>
<h4 id="user-agent"><code>user-agent</code></h4>
<ul>
<li>Default: “npm/{npm-version} node/{node-version} {platform} {arch} {ci}”</li>
<li>Default: “npm/{npm-version} node/{node-version} {platform} {arch}
workspaces/{workspaces} {ci}”</li>
<li>Type: String</li>
</ul>
<p>Sets the User-Agent request header. The following fields are replaced with
@@ -1203,6 +1204,8 @@ their actual counterparts:</p>
<li><code>{node-version}</code> - The Node.js version in use</li>
<li><code>{platform}</code> - The value of <code>process.platform</code></li>
<li><code>{arch}</code> - The value of <code>process.arch</code></li>
<li><code>{workspaces}</code> - Set to <code>true</code> if the <code>workspaces</code> or <code>workspace</code> options
are set.</li>
<li><code>{ci}</code> - The value of the <code>ci-name</code> config, if set, prefixed with <code>ci/</code>, or
an empty string if <code>ci-name</code> is empty.</li>
</ul>
+2 -7
View File
@@ -141,7 +141,7 @@ npm command-line interface
<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="#pre--post-scripts">Pre &amp; Post Scripts</a></li><li><a href="#life-cycle-scripts">Life Cycle Scripts</a></li><ul><li><a href="#prepare-and-prepublish">Prepare and Prepublish</a></li></ul><li><a href="#life-cycle-operation-order">Life Cycle Operation Order</a></li><ul><li><a href="#npm-cache-add"><a href="../commands/npm-cache.html"><code>npm cache add</code></a></a></li><li><a href="#npm-ci"><a href="../commands/npm-ci.html"><code>npm ci</code></a></a></li><li><a href="#npm-diff"><a href="../commands/npm-diff.html"><code>npm diff</code></a></a></li><li><a href="#npm-env"><a href="../commands/npm-env.html"><code>npm env</code></a></a></li><li><a href="#npm-install"><a href="../commands/npm-install.html"><code>npm install</code></a></a></li><li><a href="#npm-pack"><a href="../commands/npm-pack.html"><code>npm pack</code></a></a></li><li><a href="#npm-publish"><a href="../commands/npm-publish.html"><code>npm publish</code></a></a></li><li><a href="#npm-rebuild"><a href="../commands/npm-rebuild.html"><code>npm rebuild</code></a></a></li><li><a href="#npm-restart"><a href="../commands/npm-restart.html"><code>npm restart</code></a></a></li><li><a href="#npm-run-user-defined"><a href="../commands/npm-run.html"><code>npm run &lt;user defined&gt;</code></a></a></li><li><a href="#npm-start"><a href="../commands/npm-start.html"><code>npm start</code></a></a></li><li><a href="#npm-stop"><a href="../commands/npm-stop.html"><code>npm stop</code></a></a></li><li><a href="#npm-test"><a href="../commands/npm-test.html"><code>npm test</code></a></a></li></ul><li><a href="#user">User</a></li><li><a href="#environment">Environment</a></li><ul><li><a href="#path">path</a></li><li><a href="#packagejson-vars">package.json vars</a></li><li><a href="#configuration">configuration</a></li><li><a href="#special-packagejson-config-object">Special: package.json “config” object</a></li><li><a href="#current-lifecycle-event">current lifecycle event</a></li></ul><li><a href="#examples">Examples</a></li><li><a href="#exiting">Exiting</a></li><li><a href="#hook-scripts">Hook Scripts</a></li><li><a href="#best-practices">Best Practices</a></li><li><a href="#see-also">See Also</a></li></ul></div>
<div id="_table_of_contents"><ul><li><a href="#description">Description</a></li><li><a href="#pre--post-scripts">Pre &amp; Post Scripts</a></li><li><a href="#life-cycle-scripts">Life Cycle Scripts</a></li><ul><li><a href="#prepare-and-prepublish">Prepare and Prepublish</a></li></ul><li><a href="#life-cycle-operation-order">Life Cycle Operation Order</a></li><ul><li><a href="#npm-cache-add"><a href="../commands/npm-cache.html"><code>npm cache add</code></a></a></li><li><a href="#npm-ci"><a href="../commands/npm-ci.html"><code>npm ci</code></a></a></li><li><a href="#npm-diff"><a href="../commands/npm-diff.html"><code>npm diff</code></a></a></li><li><a href="#npm-install"><a href="../commands/npm-install.html"><code>npm install</code></a></a></li><li><a href="#npm-pack"><a href="../commands/npm-pack.html"><code>npm pack</code></a></a></li><li><a href="#npm-publish"><a href="../commands/npm-publish.html"><code>npm publish</code></a></a></li><li><a href="#npm-rebuild"><a href="../commands/npm-rebuild.html"><code>npm rebuild</code></a></a></li><li><a href="#npm-restart"><a href="../commands/npm-restart.html"><code>npm restart</code></a></a></li><li><a href="#npm-run-user-defined"><a href="../commands/npm-run-script.html"><code>npm run &lt;user defined&gt;</code></a></a></li><li><a href="#npm-start"><a href="../commands/npm-start.html"><code>npm start</code></a></a></li><li><a href="#npm-stop"><a href="../commands/npm-stop.html"><code>npm stop</code></a></a></li><li><a href="#npm-test"><a href="../commands/npm-test.html"><code>npm test</code></a></a></li></ul><li><a href="#user">User</a></li><li><a href="#environment">Environment</a></li><ul><li><a href="#path">path</a></li><li><a href="#packagejson-vars">package.json vars</a></li><li><a href="#configuration">configuration</a></li><li><a href="#special-packagejson-config-object">Special: package.json “config” object</a></li><li><a href="#current-lifecycle-event">current lifecycle event</a></li></ul><li><a href="#examples">Examples</a></li><li><a href="#exiting">Exiting</a></li><li><a href="#hook-scripts">Hook Scripts</a></li><li><a href="#best-practices">Best Practices</a></li><li><a href="#see-also">See Also</a></li></ul></div>
</section>
<div id="_content"><h3 id="description">Description</h3>
@@ -260,11 +260,6 @@ other system tools on the target machines.</li>
<ul>
<li><code>prepare</code></li>
</ul>
<h4 id="npm-env"><a href="../commands/npm-env.html"><code>npm env</code></a></h4>
<ul>
<li><code>env</code> (You can override the default behavior of <code>npm env</code> by defining
a custom <code>env</code> entry in your <code>scripts</code> object)</li>
</ul>
<h4 id="npm-install"><a href="../commands/npm-install.html"><code>npm install</code></a></h4>
<p>These also run when you run <code>npm install -g &lt;pkg-name&gt;</code></p>
<ul>
@@ -314,7 +309,7 @@ linked packages)</p>
<li><code>restart</code></li>
<li><code>postrestart</code></li>
</ul>
<h4 id="npm-run-user-defined"><a href="../commands/npm-run.html"><code>npm run &lt;user defined&gt;</code></a></h4>
<h4 id="npm-run-user-defined"><a href="../commands/npm-run-script.html"><code>npm run &lt;user defined&gt;</code></a></h4>
<ul>
<li><code>pre&lt;user-defined&gt;</code></li>
<li><code>&lt;user-defined&gt;</code></li>
+19 -21
View File
@@ -86,32 +86,30 @@ with --force.`)
return rimraf(cachePath)
}
// npm cache add <tarball-url>
// npm cache add <pkg> <ver>
// npm cache add <tarball>
// npm cache add <folder>
// npm cache add <tarball-url>...
// npm cache add <pkg> <ver>...
// npm cache add <tarball>...
// npm cache add <folder>...
async add (args) {
const usage = 'Usage:\n' +
' npm cache add <tarball-url>\n' +
' npm cache add <pkg>@<ver>\n' +
' npm cache add <tarball>\n' +
' npm cache add <folder>\n'
' npm cache add <tarball-url>...\n' +
' npm cache add <pkg>@<ver>...\n' +
' npm cache add <tarball>...\n' +
' npm cache add <folder>...\n'
log.silly('cache add', 'args', args)
const spec = args[0] && args[0] +
(args[1] === undefined || args[1] === null ? '' : `@${args[1]}`)
if (!spec)
if (args.length === 0)
throw Object.assign(new Error(usage), { code: 'EUSAGE' })
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.
await pacote.tarball.stream(spec, stream => {
stream.resume()
return stream.promise()
}, this.npm.flatOptions)
return Promise.all(args.map(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 => {
stream.resume()
return stream.promise()
}, this.npm.flatOptions)
}))
}
async verify () {
+2 -2
View File
@@ -199,7 +199,7 @@ class Config extends BaseCommand {
; Configs like \`//<hostname>/:_authToken\` are auth that is restricted
; to the registry host specified.
${data.split('\n').sort((a, b) => a.localeCompare(b)).join('\n').trim()}
${data.split('\n').sort((a, b) => a.localeCompare(b, 'en')).join('\n').trim()}
;;;;
; all available options shown below with default values
@@ -227,7 +227,7 @@ ${defData}
if (where === 'default' && !long)
continue
const keys = Object.keys(data).sort((a, b) => a.localeCompare(b))
const keys = Object.keys(data).sort((a, b) => a.localeCompare(b, 'en'))
if (!keys.length)
continue
+1 -1
View File
@@ -77,7 +77,7 @@ class Help extends BaseCommand {
if (aManNumber !== bManNumber)
return aManNumber - bManNumber
return a.localeCompare(b)
return a.localeCompare(b, 'en')
})
const man = mans[0]
+1 -1
View File
@@ -443,7 +443,7 @@ const augmentNodesWithMetadata = ({
}
const sortAlphabetically = (a, b) =>
a.pkgid.localeCompare(b.pkgid)
a.pkgid.localeCompare(b.pkgid, 'en')
const humanOutput = ({ color, result, seenItems, unicode }) => {
// we need to traverse the entire tree in order to determine which items
+2 -2
View File
@@ -68,7 +68,7 @@ class Outdated extends BaseCommand {
}))
// sorts list alphabetically
const outdated = this.list.sort((a, b) => a.name.localeCompare(b.name))
const outdated = this.list.sort((a, b) => a.name.localeCompare(b.name, 'en'))
// return if no outdated packages
if (outdated.length === 0 && !this.npm.config.get('json'))
@@ -149,7 +149,7 @@ class Outdated extends BaseCommand {
: edge.dev ? 'devDependencies'
: 'dependencies'
for (const omitType of this.npm.config.get('omit') || []) {
for (const omitType of this.npm.config.get('omit')) {
if (node[omitType])
return
}
+1 -1
View File
@@ -16,7 +16,7 @@ const installedDeep = async (npm) => {
})
.filter(i => (i.depth - 1) <= depth)
.sort((a, b) => a.depth - b.depth)
.sort((a, b) => a.depth === b.depth ? a.name.localeCompare(b.name) : 0)
.sort((a, b) => a.depth === b.depth ? a.name.localeCompare(b.name, 'en') : 0)
const res = new Set()
const gArb = new Arborist({ global: true, path: resolve(npm.globalDir, '..') })
+7
View File
@@ -1943,6 +1943,7 @@ define('user-agent', {
'node/{node-version} ' +
'{platform} ' +
'{arch} ' +
'workspaces/{workspaces} ' +
'{ci}',
type: String,
description: `
@@ -1953,17 +1954,23 @@ define('user-agent', {
* \`{node-version}\` - The Node.js version in use
* \`{platform}\` - The value of \`process.platform\`
* \`{arch}\` - The value of \`process.arch\`
* \`{workspaces}\` - Set to \`true\` if the \`workspaces\` or \`workspace\`
options are set.
* \`{ci}\` - The value of the \`ci-name\` config, if set, prefixed with
\`ci/\`, or an empty string if \`ci-name\` is empty.
`,
flatten (key, obj, flatOptions) {
const value = obj[key]
const ciName = obj['ci-name']
let inWorkspaces = false
if (obj.workspaces || obj.workspace && obj.workspace.length)
inWorkspaces = true
flatOptions.userAgent =
value.replace(/\{node-version\}/gi, obj['node-version'])
.replace(/\{npm-version\}/gi, obj['npm-version'])
.replace(/\{platform\}/gi, process.platform)
.replace(/\{arch\}/gi, process.arch)
.replace(/\{workspaces\}/gi, inWorkspaces)
.replace(/\{ci\}/gi, ciName ? `ci/${ciName}` : '')
.trim()
// user-agent is a unique kind of config item that gets set from a template
+1 -1
View File
@@ -7,7 +7,7 @@ const describeAll = () => {
const sort = ([keya, {deprecated: depa}], [keyb, {deprecated: depb}]) => {
return depa && !depb ? 1
: !depa && depb ? -1
: keya.localeCompare(keyb)
: keya.localeCompare(keyb, 'en')
}
return Object.entries(definitions).sort(sort)
.map(([key, def]) => def.describe())
+1 -1
View File
@@ -62,7 +62,7 @@ const usages = (npm) => {
maxLen = Math.max(maxLen, c.length)
return set
}, [])
.sort((a, b) => a[0].localeCompare(b[0]))
.sort((a, b) => a[0].localeCompare(b[0], 'en'))
.map(([c, usage]) => `\n ${c}${' '.repeat(maxLen - c.length + 1)}${
(usage.split('\n').join('\n' + ' '.repeat(maxLen + 5)))}`)
.join('\n')
+2 -2
View File
@@ -76,7 +76,7 @@ const getContents = async (manifest, tarball) => {
})
const comparator = (a, b) => {
return a.path.localeCompare(b.path, undefined, {
return a.path.localeCompare(b.path, 'en', {
sensitivity: 'case',
numeric: true,
})
@@ -84,7 +84,7 @@ const getContents = async (manifest, tarball) => {
const isUpper = (str) => {
const ch = str.charAt(0)
return ch >= 'A' && ch <= 'Z'
return ch === ch.toUpperCase()
}
const uppers = files.filter(file => isUpper(file.path))
+4 -1
View File
@@ -202,7 +202,10 @@ class View extends BaseCommand {
const spec = npa(pkg)
// get the data about this package
let version = spec.rawSpec || this.npm.config.get('tag')
let version = this.npm.config.get('tag')
// rawSpec is the git url if this is from git
if (spec.type !== 'git' && spec.rawSpec)
version = spec.rawSpec
const pckmnt = await packument(spec, opts)
+1 -1
View File
@@ -1,4 +1,4 @@
.TH "NPM\-ACCESS" "1" "April 2021" "" ""
.TH "NPM\-ACCESS" "1" "May 2021" "" ""
.SH "NAME"
\fBnpm-access\fR \- Set access level on published packages
.SS Synopsis
+1 -1
View File
@@ -1,4 +1,4 @@
.TH "NPM\-ADDUSER" "1" "April 2021" "" ""
.TH "NPM\-ADDUSER" "1" "May 2021" "" ""
.SH "NAME"
\fBnpm-adduser\fR \- Add a registry user account
.SS Synopsis
+1 -1
View File
@@ -1,4 +1,4 @@
.TH "NPM\-AUDIT" "1" "April 2021" "" ""
.TH "NPM\-AUDIT" "1" "May 2021" "" ""
.SH "NAME"
\fBnpm-audit\fR \- Run a security audit
.SS Synopsis
+1 -1
View File
@@ -1,4 +1,4 @@
.TH "NPM\-BIN" "1" "April 2021" "" ""
.TH "NPM\-BIN" "1" "May 2021" "" ""
.SH "NAME"
\fBnpm-bin\fR \- Display npm bin folder
.SS Synopsis
+1 -1
View File
@@ -1,4 +1,4 @@
.TH "NPM\-BUGS" "1" "April 2021" "" ""
.TH "NPM\-BUGS" "1" "May 2021" "" ""
.SH "NAME"
\fBnpm-bugs\fR \- Report bugs for a package in a web browser
.SS Synopsis
+6 -6
View File
@@ -1,14 +1,14 @@
.TH "NPM\-CACHE" "1" "April 2021" "" ""
.TH "NPM\-CACHE" "1" "May 2021" "" ""
.SH "NAME"
\fBnpm-cache\fR \- Manipulates packages cache
.SS Synopsis
.P
.RS 2
.nf
npm cache add <tarball file>
npm cache add <folder>
npm cache add <tarball url>
npm cache add <name>@<version>
npm cache add <tarball file>\.\.\.
npm cache add <folder>\.\.\.
npm cache add <tarball url>\.\.\.
npm cache add <name>@<version>\.\.\.
npm cache clean
aliases: npm cache clear, npm cache rm
@@ -24,7 +24,7 @@ Used to add, list, or clean the npm cache folder\.
.RS 0
.IP \(bu 2
add:
Add the specified package to the local cache\. This command is primarily
Add the specified packages to the local cache\. This command is primarily
intended to be used internally by npm, but it can provide a way to
add data to the local installation cache explicitly\.
.IP \(bu 2
+2 -2
View File
@@ -1,4 +1,4 @@
.TH "NPM\-CI" "1" "April 2021" "" ""
.TH "NPM\-CI" "1" "May 2021" "" ""
.SH "NAME"
\fBnpm-ci\fR \- Install a project with a clean slate
.SS Synopsis
@@ -10,7 +10,7 @@ npm ci
.RE
.SS Description
.P
This command is similar to \fBnpm install\fP \fI/cli\-commands/install\fR, except
This command is similar to npm help \fBinstall\fP, except
it's meant to be used in automated environments such as test platforms,
continuous integration, and deployment \-\- or any situation where you want
to make sure you're doing a clean install of your dependencies\.
+1 -1
View File
@@ -1,4 +1,4 @@
.TH "NPM\-COMPLETION" "1" "April 2021" "" ""
.TH "NPM\-COMPLETION" "1" "May 2021" "" ""
.SH "NAME"
\fBnpm-completion\fR \- Tab Completion for npm
.SS Synopsis
+1 -1
View File
@@ -1,4 +1,4 @@
.TH "NPM\-CONFIG" "1" "April 2021" "" ""
.TH "NPM\-CONFIG" "1" "May 2021" "" ""
.SH "NAME"
\fBnpm-config\fR \- Manage the npm configuration files
.SS Synopsis
+5 -5
View File
@@ -1,4 +1,4 @@
.TH "NPM\-DEDUPE" "1" "April 2021" "" ""
.TH "NPM\-DEDUPE" "1" "May 2021" "" ""
.SH "NAME"
\fBnpm-dedupe\fR \- Reduce duplication in the package tree
.SS Synopsis
@@ -78,12 +78,12 @@ Using \fBnpm find\-dupes\fP will run the command in \fB\-\-dry\-run\fP mode\.
.SS See Also
.RS 0
.IP \(bu 2
npm find\-dupes \fI/cli\-commands/find\-dupes\fR
npm help find\-dupes
.IP \(bu 2
npm ls \fI/cli\-commands/ls\fR
npm help ls
.IP \(bu 2
npm update \fI/cli\-commands/update\fR
npm help update
.IP \(bu 2
npm install \fI/cli\-commands/install\fR
npm help install
.RE
+3 -3
View File
@@ -1,4 +1,4 @@
.TH "NPM\-DEPRECATE" "1" "April 2021" "" ""
.TH "NPM\-DEPRECATE" "1" "May 2021" "" ""
.SH "NAME"
\fBnpm-deprecate\fR \- Deprecate a version of a package
.SS Synopsis
@@ -48,8 +48,8 @@ npm help publish
.IP \(bu 2
npm help registry
.IP \(bu 2
npm owner \fI/cli\-commands/owner\fR
npm help owner
.IP \(bu 2
npm owner \fI/cli\-commands/adduser\fR
npm help owner
.RE
+1 -1
View File
@@ -1,4 +1,4 @@
.TH "NPM\-DIFF" "1" "April 2021" "" ""
.TH "NPM\-DIFF" "1" "May 2021" "" ""
.SH "NAME"
\fBnpm-diff\fR \- The registry diff command
.SS Synopsis
+1 -1
View File
@@ -1,4 +1,4 @@
.TH "NPM\-DIST\-TAG" "1" "April 2021" "" ""
.TH "NPM\-DIST\-TAG" "1" "May 2021" "" ""
.SH "NAME"
\fBnpm-dist-tag\fR \- Modify package distribution tags
.SS Synopsis
+1 -1
View File
@@ -1,4 +1,4 @@
.TH "NPM\-DOCS" "1" "April 2021" "" ""
.TH "NPM\-DOCS" "1" "May 2021" "" ""
.SH "NAME"
\fBnpm-docs\fR \- Open documentation for a package in a web browser
.SS Synopsis
+1 -1
View File
@@ -1,4 +1,4 @@
.TH "NPM\-DOCTOR" "1" "April 2021" "" ""
.TH "NPM\-DOCTOR" "1" "May 2021" "" ""
.SH "NAME"
\fBnpm-doctor\fR \- Check your npm environment
.SS Synopsis
+1 -1
View File
@@ -1,4 +1,4 @@
.TH "NPM\-EDIT" "1" "April 2021" "" ""
.TH "NPM\-EDIT" "1" "May 2021" "" ""
.SH "NAME"
\fBnpm-edit\fR \- Edit an installed package
.SS Synopsis
+1 -1
View File
@@ -1,4 +1,4 @@
.TH "NPM\-EXEC" "1" "April 2021" "" ""
.TH "NPM\-EXEC" "1" "May 2021" "" ""
.SH "NAME"
\fBnpm-exec\fR \- Run a command from a local or remote npm package
.SS Synopsis
+1 -1
View File
@@ -1,4 +1,4 @@
.TH "NPM\-EXPLAIN" "1" "April 2021" "" ""
.TH "NPM\-EXPLAIN" "1" "May 2021" "" ""
.SH "NAME"
\fBnpm-explain\fR \- Explain installed packages
.SS Synopsis
+1 -3
View File
@@ -1,4 +1,4 @@
.TH "NPM\-EXPLORE" "1" "April 2021" "" ""
.TH "NPM\-EXPLORE" "1" "May 2021" "" ""
.SH "NAME"
\fBnpm-explore\fR \- Browse an installed package
.SS Synopsis
@@ -49,8 +49,6 @@ npm help edit
.IP \(bu 2
npm help rebuild
.IP \(bu 2
npm help build
.IP \(bu 2
npm help install
.RE
+5 -5
View File
@@ -1,4 +1,4 @@
.TH "NPM\-FIND\-DUPES" "1" "April 2021" "" ""
.TH "NPM\-FIND\-DUPES" "1" "May 2021" "" ""
.SH "NAME"
\fBnpm-find-dupes\fR \- Find duplication in the package tree
.SS Synopsis
@@ -15,12 +15,12 @@ duplications, without actually changing the package tree\.
.SS See Also
.RS 0
.IP \(bu 2
npm dedupe \fI/cli\-commands/dedupe\fR
npm help dedupe
.IP \(bu 2
npm ls \fI/cli\-commands/ls\fR
npm help ls
.IP \(bu 2
npm update \fI/cli\-commands/update\fR
npm help update
.IP \(bu 2
npm install \fI/cli\-commands/install\fR
npm help install
.RE
+1 -1
View File
@@ -1,4 +1,4 @@
.TH "NPM\-FUND" "1" "April 2021" "" ""
.TH "NPM\-FUND" "1" "May 2021" "" ""
.SH "NAME"
\fBnpm-fund\fR \- Retrieve funding information
.SS Synopsis
+1 -1
View File
@@ -1,4 +1,4 @@
.TH "NPM\-HELP\-SEARCH" "1" "April 2021" "" ""
.TH "NPM\-HELP\-SEARCH" "1" "May 2021" "" ""
.SH "NAME"
\fBnpm-help-search\fR \- Search npm help documentation
.SS Synopsis
+1 -1
View File
@@ -1,4 +1,4 @@
.TH "NPM\-HELP" "1" "April 2021" "" ""
.TH "NPM\-HELP" "1" "May 2021" "" ""
.SH "NAME"
\fBnpm-help\fR \- Get help on npm
.SS Synopsis
+1 -1
View File
@@ -1,4 +1,4 @@
.TH "NPM\-HOOK" "1" "April 2021" "" ""
.TH "NPM\-HOOK" "1" "May 2021" "" ""
.SH "NAME"
\fBnpm-hook\fR \- Manage registry hooks
.SS Synopsis
+1 -1
View File
@@ -1,4 +1,4 @@
.TH "NPM\-INIT" "1" "April 2021" "" ""
.TH "NPM\-INIT" "1" "May 2021" "" ""
.SH "NAME"
\fBnpm-init\fR \- Create a package\.json file
.SS Synopsis
+1 -1
View File
@@ -1,4 +1,4 @@
.TH "NPM\-INSTALL\-CI\-TEST" "1" "April 2021" "" ""
.TH "NPM\-INSTALL\-CI\-TEST" "1" "May 2021" "" ""
.SH "NAME"
\fBnpm-install-ci-test\fR \- Install a project with a clean slate and run tests
.SS Synopsis
+1 -1
View File
@@ -1,4 +1,4 @@
.TH "NPM\-INSTALL\-TEST" "1" "April 2021" "" ""
.TH "NPM\-INSTALL\-TEST" "1" "May 2021" "" ""
.SH "NAME"
\fBnpm-install-test\fR \- Install package(s) and run tests
.SS Synopsis
+1 -3
View File
@@ -1,4 +1,4 @@
.TH "NPM\-INSTALL" "1" "April 2021" "" ""
.TH "NPM\-INSTALL" "1" "May 2021" "" ""
.SH "NAME"
\fBnpm-install\fR \- Install a package
.SS Synopsis
@@ -576,8 +576,6 @@ npm help rebuild
.IP \(bu 2
npm help scripts
.IP \(bu 2
npm help build
.IP \(bu 2
npm help config
.IP \(bu 2
npm help npmrc
+1 -1
View File
@@ -1,4 +1,4 @@
.TH "NPM\-LINK" "1" "April 2021" "" ""
.TH "NPM\-LINK" "1" "May 2021" "" ""
.SH "NAME"
\fBnpm-link\fR \- Symlink a package folder
.SS Synopsis
+1 -1
View File
@@ -1,4 +1,4 @@
.TH "NPM\-LOGOUT" "1" "April 2021" "" ""
.TH "NPM\-LOGOUT" "1" "May 2021" "" ""
.SH "NAME"
\fBnpm-logout\fR \- Log out of the registry
.SS Synopsis
+2 -2
View File
@@ -1,4 +1,4 @@
.TH "NPM\-LS" "1" "April 2021" "" ""
.TH "NPM\-LS" "1" "May 2021" "" ""
.SH "NAME"
\fBnpm-ls\fR \- List installed packages
.SS Synopsis
@@ -26,7 +26,7 @@ example, running \fBnpm ls promzard\fP in npm's source tree will show:
.P
.RS 2
.nf
npm@7\.11\.2 /path/to/npm
npm@7\.12\.1 /path/to/npm
└─┬ init\-package\-json@0\.0\.4
└── promzard@0\.1\.5
.fi
+1 -1
View File
@@ -1,4 +1,4 @@
.TH "NPM\-ORG" "1" "April 2021" "" ""
.TH "NPM\-ORG" "1" "May 2021" "" ""
.SH "NAME"
\fBnpm-org\fR \- Manage orgs
.SS Synopsis
+1 -1
View File
@@ -1,4 +1,4 @@
.TH "NPM\-OUTDATED" "1" "April 2021" "" ""
.TH "NPM\-OUTDATED" "1" "May 2021" "" ""
.SH "NAME"
\fBnpm-outdated\fR \- Check for outdated packages
.SS Synopsis
+1 -1
View File
@@ -1,4 +1,4 @@
.TH "NPM\-OWNER" "1" "April 2021" "" ""
.TH "NPM\-OWNER" "1" "May 2021" "" ""
.SH "NAME"
\fBnpm-owner\fR \- Manage package owners
.SS Synopsis
+1 -1
View File
@@ -1,4 +1,4 @@
.TH "NPM\-PACK" "1" "April 2021" "" ""
.TH "NPM\-PACK" "1" "May 2021" "" ""
.SH "NAME"
\fBnpm-pack\fR \- Create a tarball from a package
.SS Synopsis
+1 -1
View File
@@ -1,4 +1,4 @@
.TH "NPM\-PING" "1" "April 2021" "" ""
.TH "NPM\-PING" "1" "May 2021" "" ""
.SH "NAME"
\fBnpm-ping\fR \- Ping npm registry
.SS Synopsis
+1 -1
View File
@@ -1,4 +1,4 @@
.TH "NPM\-PREFIX" "1" "April 2021" "" ""
.TH "NPM\-PREFIX" "1" "May 2021" "" ""
.SH "NAME"
\fBnpm-prefix\fR \- Display prefix
.SS Synopsis
+1 -1
View File
@@ -1,4 +1,4 @@
.TH "NPM\-PROFILE" "1" "April 2021" "" ""
.TH "NPM\-PROFILE" "1" "May 2021" "" ""
.SH "NAME"
\fBnpm-profile\fR \- Change settings on your registry profile
.SS Synopsis
+1 -1
View File
@@ -1,4 +1,4 @@
.TH "NPM\-PRUNE" "1" "April 2021" "" ""
.TH "NPM\-PRUNE" "1" "May 2021" "" ""
.SH "NAME"
\fBnpm-prune\fR \- Remove extraneous packages
.SS Synopsis
+1 -1
View File
@@ -1,4 +1,4 @@
.TH "NPM\-PUBLISH" "1" "April 2021" "" ""
.TH "NPM\-PUBLISH" "1" "May 2021" "" ""
.SH "NAME"
\fBnpm-publish\fR \- Publish a package
.SS Synopsis
+1 -1
View File
@@ -1,4 +1,4 @@
.TH "NPM\-REBUILD" "1" "April 2021" "" ""
.TH "NPM\-REBUILD" "1" "May 2021" "" ""
.SH "NAME"
\fBnpm-rebuild\fR \- Rebuild a package
.SS Synopsis
+1 -1
View File
@@ -1,4 +1,4 @@
.TH "NPM\-REPO" "1" "April 2021" "" ""
.TH "NPM\-REPO" "1" "May 2021" "" ""
.SH "NAME"
\fBnpm-repo\fR \- Open package repository page in the browser
.SS Synopsis
+1 -1
View File
@@ -1,4 +1,4 @@
.TH "NPM\-RESTART" "1" "April 2021" "" ""
.TH "NPM\-RESTART" "1" "May 2021" "" ""
.SH "NAME"
\fBnpm-restart\fR \- Restart a package
.SS Synopsis
+1 -1
View File
@@ -1,4 +1,4 @@
.TH "NPM\-ROOT" "1" "April 2021" "" ""
.TH "NPM\-ROOT" "1" "May 2021" "" ""
.SH "NAME"
\fBnpm-root\fR \- Display npm root
.SS Synopsis
+1 -1
View File
@@ -1,4 +1,4 @@
.TH "NPM\-RUN\-SCRIPT" "1" "April 2021" "" ""
.TH "NPM\-RUN\-SCRIPT" "1" "May 2021" "" ""
.SH "NAME"
\fBnpm-run-script\fR \- Run arbitrary package scripts
.SS Synopsis
+1 -1
View File
@@ -1,4 +1,4 @@
.TH "NPM\-SEARCH" "1" "April 2021" "" ""
.TH "NPM\-SEARCH" "1" "May 2021" "" ""
.SH "NAME"
\fBnpm-search\fR \- Search for packages
.SS Synopsis
+1 -1
View File
@@ -1,4 +1,4 @@
.TH "NPM\-SET\-SCRIPT" "1" "April 2021" "" ""
.TH "NPM\-SET\-SCRIPT" "1" "May 2021" "" ""
.SH "NAME"
\fBnpm-set-script\fR \- Set tasks in the scripts section of package\.json
.SS Synopsis
+1 -1
View File
@@ -1,4 +1,4 @@
.TH "NPM\-SHRINKWRAP" "1" "April 2021" "" ""
.TH "NPM\-SHRINKWRAP" "1" "May 2021" "" ""
.SH "NAME"
\fBnpm-shrinkwrap\fR \- Lock down dependency versions for publication
.SS Synopsis
+1 -1
View File
@@ -1,4 +1,4 @@
.TH "NPM\-STAR" "1" "April 2021" "" ""
.TH "NPM\-STAR" "1" "May 2021" "" ""
.SH "NAME"
\fBnpm-star\fR \- Mark your favorite packages
.SS Synopsis
+1 -1
View File
@@ -1,4 +1,4 @@
.TH "NPM\-STARS" "1" "April 2021" "" ""
.TH "NPM\-STARS" "1" "May 2021" "" ""
.SH "NAME"
\fBnpm-stars\fR \- View packages marked as favorites
.SS Synopsis
+1 -1
View File
@@ -1,4 +1,4 @@
.TH "NPM\-START" "1" "April 2021" "" ""
.TH "NPM\-START" "1" "May 2021" "" ""
.SH "NAME"
\fBnpm-start\fR \- Start a package
.SS Synopsis
+1 -1
View File
@@ -1,4 +1,4 @@
.TH "NPM\-STOP" "1" "April 2021" "" ""
.TH "NPM\-STOP" "1" "May 2021" "" ""
.SH "NAME"
\fBnpm-stop\fR \- Stop a package
.SS Synopsis
+1 -1
View File
@@ -1,4 +1,4 @@
.TH "NPM\-TEAM" "1" "April 2021" "" ""
.TH "NPM\-TEAM" "1" "May 2021" "" ""
.SH "NAME"
\fBnpm-team\fR \- Manage organization teams and team memberships
.SS Synopsis
+1 -1
View File
@@ -1,4 +1,4 @@
.TH "NPM\-TEST" "1" "April 2021" "" ""
.TH "NPM\-TEST" "1" "May 2021" "" ""
.SH "NAME"
\fBnpm-test\fR \- Test a package
.SS Synopsis
+1 -1
View File
@@ -1,4 +1,4 @@
.TH "NPM\-TOKEN" "1" "April 2021" "" ""
.TH "NPM\-TOKEN" "1" "May 2021" "" ""
.SH "NAME"
\fBnpm-token\fR \- Manage your authentication tokens
.SS Synopsis
+1 -1
View File
@@ -1,4 +1,4 @@
.TH "NPM\-UNINSTALL" "1" "April 2021" "" ""
.TH "NPM\-UNINSTALL" "1" "May 2021" "" ""
.SH "NAME"
\fBnpm-uninstall\fR \- Remove a package
.SS Synopsis
+1 -1
View File
@@ -1,4 +1,4 @@
.TH "NPM\-UNPUBLISH" "1" "April 2021" "" ""
.TH "NPM\-UNPUBLISH" "1" "May 2021" "" ""
.SH "NAME"
\fBnpm-unpublish\fR \- Remove a package from the registry
.SS Synopsis
Loaded 100 of 182 files, more files were not shown because too many files have changed in this diff. Show more