deps: upgrade npm to 8.9.0

PR-URL: https://github.com/nodejs/node/pull/42968
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Myles Borins <myles.borins@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
This commit is contained in:
npm-robot authored and Juan José Arboleda committed 2022-05-31 21:13:28 -05:00
1 parent a746943fcb
commit 3dfc632f12
127 files changed
+666 -364

No files matched your search

-4
View File
@@ -147,10 +147,6 @@ this warning is treated as a failure.
If set to false, then ignore `package-lock.json` files when installing. This
will also prevent _writing_ `package-lock.json` if `save` is true.
When package package-locks are disabled, automatic pruning of extraneous
modules will also be disabled. To remove extraneous modules with
package-locks disabled use `npm prune`.
This configuration does not affect `npm ci`.
<!-- automatically generated, do not edit manually -->
-4
View File
@@ -87,10 +87,6 @@ this warning is treated as a failure.
If set to false, then ignore `package-lock.json` files when installing. This
will also prevent _writing_ `package-lock.json` if `save` is true.
When package package-locks are disabled, automatic pruning of extraneous
modules will also be disabled. To remove extraneous modules with
package-locks disabled use `npm prune`.
This configuration does not affect `npm ci`.
<!-- automatically generated, do not edit manually -->
-4
View File
@@ -162,10 +162,6 @@ this warning is treated as a failure.
If set to false, then ignore `package-lock.json` files when installing. This
will also prevent _writing_ `package-lock.json` if `save` is true.
When package package-locks are disabled, automatic pruning of extraneous
modules will also be disabled. To remove extraneous modules with
package-locks disabled use `npm prune`.
This configuration does not affect `npm ci`.
<!-- automatically generated, do not edit manually -->
-4
View File
@@ -552,10 +552,6 @@ this warning is treated as a failure.
If set to false, then ignore `package-lock.json` files when installing. This
will also prevent _writing_ `package-lock.json` if `save` is true.
When package package-locks are disabled, automatic pruning of extraneous
modules will also be disabled. To remove extraneous modules with
package-locks disabled use `npm prune`.
This configuration does not affect `npm ci`.
<!-- automatically generated, do not edit manually -->
-4
View File
@@ -224,10 +224,6 @@ this warning is treated as a failure.
If set to false, then ignore `package-lock.json` files when installing. This
will also prevent _writing_ `package-lock.json` if `save` is true.
When package package-locks are disabled, automatic pruning of extraneous
modules will also be disabled. To remove extraneous modules with
package-locks disabled use `npm prune`.
This configuration does not affect `npm ci`.
<!-- automatically generated, do not edit manually -->
+46
View File
@@ -73,6 +73,52 @@ password, npm will prompt on the command line for one.
<!-- automatically generated, do not edit manually -->
<!-- see lib/utils/config/definitions.js -->
#### `workspace`
* Default:
* Type: String (can be set multiple times)
Enable running a command in the context of the configured workspaces of the
current project while filtering by running only the workspaces defined by
this configuration option.
Valid values for the `workspace` config are either:
* Workspace names
* Path to a workspace directory
* Path to a parent workspace directory (will result in selecting all
workspaces within that folder)
When set for the `npm init` command, this may be set to the folder of a
workspace which does not yet exist, to create the folder and set it up as a
brand new workspace within the project.
This value is not exported to the environment for child processes.
<!-- automatically generated, do not edit manually -->
<!-- see lib/utils/config/definitions.js -->
#### `workspaces`
* Default: null
* Type: null or Boolean
Set to true to run the command in the context of **all** configured
workspaces.
Explicitly setting this to false will cause commands like `install` to
ignore workspaces altogether. When not set explicitly:
- Commands that operate on the `node_modules` tree (install, update, etc.)
will link workspaces into the `node_modules` folder. - Commands that do
other things (test, exec, publish, etc.) will operate on the root project,
_unless_ one or more workspaces are specified in the `workspace` config.
This value is not exported to the environment for child processes.
<!-- automatically generated, do not edit manually -->
<!-- see lib/utils/config/definitions.js -->
<!-- AUTOGENERATED CONFIG DESCRIPTIONS END -->
### See Also
+8
View File
@@ -76,6 +76,14 @@ Returned values are always in **json** format.
npm pkg get contributors[0].email
```
For complex fields you can also name a property in square brackets
to specifically select a child field. This is especially helpful
with the exports object:
```bash
npm pkg get "exports[.].require"
```
* `npm pkg set <field>=<value>`
Sets a `value` in your `package.json` based on the `field` value. When
-4
View File
@@ -280,10 +280,6 @@ this warning is treated as a failure.
If set to false, then ignore `package-lock.json` files when installing. This
will also prevent _writing_ `package-lock.json` if `save` is true.
When package package-locks are disabled, automatic pruning of extraneous
modules will also be disabled. To remove extraneous modules with
package-locks disabled use `npm prune`.
This configuration does not affect `npm ci`.
<!-- automatically generated, do not edit manually -->
-4
View File
@@ -1219,10 +1219,6 @@ The package to install for [`npm exec`](/commands/npm-exec)
If set to false, then ignore `package-lock.json` files when installing. This
will also prevent _writing_ `package-lock.json` if `save` is true.
When package package-locks are disabled, automatic pruning of extraneous
modules will also be disabled. To remove extraneous modules with
package-locks disabled use `npm prune`.
This configuration does not affect `npm ci`.
<!-- automatically generated, do not edit manually -->
-3
View File
@@ -253,9 +253,6 @@ this warning is treated as a failure.</p>
</ul>
<p>If set to false, then ignore <code>package-lock.json</code> files when installing. This
will also prevent <em>writing</em> <code>package-lock.json</code> if <code>save</code> is true.</p>
<p>When package package-locks are disabled, automatic pruning of extraneous
modules will also be disabled. To remove extraneous modules with
package-locks disabled use <code>npm prune</code>.</p>
<p>This configuration does not affect <code>npm ci</code>.</p>
<!-- raw HTML omitted -->
<!-- raw HTML omitted -->
-3
View File
@@ -210,9 +210,6 @@ this warning is treated as a failure.</p>
</ul>
<p>If set to false, then ignore <code>package-lock.json</code> files when installing. This
will also prevent <em>writing</em> <code>package-lock.json</code> if <code>save</code> is true.</p>
<p>When package package-locks are disabled, automatic pruning of extraneous
modules will also be disabled. To remove extraneous modules with
package-locks disabled use <code>npm prune</code>.</p>
<p>This configuration does not affect <code>npm ci</code>.</p>
<!-- raw HTML omitted -->
<!-- raw HTML omitted -->
-3
View File
@@ -273,9 +273,6 @@ this warning is treated as a failure.</p>
</ul>
<p>If set to false, then ignore <code>package-lock.json</code> files when installing. This
will also prevent <em>writing</em> <code>package-lock.json</code> if <code>save</code> is true.</p>
<p>When package package-locks are disabled, automatic pruning of extraneous
modules will also be disabled. To remove extraneous modules with
package-locks disabled use <code>npm prune</code>.</p>
<p>This configuration does not affect <code>npm ci</code>.</p>
<!-- raw HTML omitted -->
<!-- raw HTML omitted -->
-3
View File
@@ -599,9 +599,6 @@ this warning is treated as a failure.</p>
</ul>
<p>If set to false, then ignore <code>package-lock.json</code> files when installing. This
will also prevent <em>writing</em> <code>package-lock.json</code> if <code>save</code> is true.</p>
<p>When package package-locks are disabled, automatic pruning of extraneous
modules will also be disabled. To remove extraneous modules with
package-locks disabled use <code>npm prune</code>.</p>
<p>This configuration does not affect <code>npm ci</code>.</p>
<!-- raw HTML omitted -->
<!-- raw HTML omitted -->
-3
View File
@@ -312,9 +312,6 @@ this warning is treated as a failure.</p>
</ul>
<p>If set to false, then ignore <code>package-lock.json</code> files when installing. This
will also prevent <em>writing</em> <code>package-lock.json</code> if <code>save</code> is true.</p>
<p>When package package-locks are disabled, automatic pruning of extraneous
modules will also be disabled. To remove extraneous modules with
package-locks disabled use <code>npm prune</code>.</p>
<p>This configuration does not affect <code>npm ci</code>.</p>
<!-- raw HTML omitted -->
<!-- raw HTML omitted -->
+1 -1
View File
@@ -166,7 +166,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@8.8.0 /path/to/npm
<pre lang="bash"><code>npm@8.9.0 /path/to/npm
└─┬ init-package-json@0.0.4
└── promzard@0.1.5
</code></pre>
+40 -1
View File
@@ -142,7 +142,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="#synopsis">Synopsis</a></li><li><a href="#description">Description</a></li><li><a href="#configuration">Configuration</a></li><ul><li><a href="#registry"><code>registry</code></a></li><li><a href="#otp"><code>otp</code></a></li></ul><li><a href="#see-also">See Also</a></li></ul></div>
<div id="_table_of_contents"><ul><li><a href="#synopsis">Synopsis</a></li><li><a href="#description">Description</a></li><li><a href="#configuration">Configuration</a></li><ul><li><a href="#registry"><code>registry</code></a></li><li><a href="#otp"><code>otp</code></a></li><li><a href="#workspace"><code>workspace</code></a></li><li><a href="#workspaces"><code>workspaces</code></a></li></ul><li><a href="#see-also">See Also</a></li></ul></div>
</section>
<div id="_content"><h3 id="synopsis">Synopsis</h3>
@@ -198,6 +198,45 @@ when publishing or changing package permissions with <code>npm access</code>.</p
password, npm will prompt on the command line for one.</p>
<!-- raw HTML omitted -->
<!-- raw HTML omitted -->
<h4 id="workspace"><code>workspace</code></h4>
<ul>
<li>Default:</li>
<li>Type: String (can be set multiple times)</li>
</ul>
<p>Enable running a command in the context of the configured workspaces of the
current project while filtering by running only the workspaces defined by
this configuration option.</p>
<p>Valid values for the <code>workspace</code> config are either:</p>
<ul>
<li>Workspace names</li>
<li>Path to a workspace directory</li>
<li>Path to a parent workspace directory (will result in selecting all
workspaces within that folder)</li>
</ul>
<p>When set for the <code>npm init</code> command, this may be set to the folder of a
workspace which does not yet exist, to create the folder and set it up as a
brand new workspace within the project.</p>
<p>This value is not exported to the environment for child processes.</p>
<!-- raw HTML omitted -->
<!-- raw HTML omitted -->
<h4 id="workspaces"><code>workspaces</code></h4>
<ul>
<li>Default: null</li>
<li>Type: null or Boolean</li>
</ul>
<p>Set to true to run the command in the context of <strong>all</strong> configured
workspaces.</p>
<p>Explicitly setting this to false will cause commands like <code>install</code> to
ignore workspaces altogether. When not set explicitly:</p>
<ul>
<li>Commands that operate on the <code>node_modules</code> tree (install, update, etc.)
will link workspaces into the <code>node_modules</code> folder. - Commands that do
other things (test, exec, publish, etc.) will operate on the root project,
<em>unless</em> one or more workspaces are specified in the <code>workspace</code> config.</li>
</ul>
<p>This value is not exported to the environment for child processes.</p>
<!-- raw HTML omitted -->
<!-- raw HTML omitted -->
<!-- raw HTML omitted -->
<h3 id="see-also">See Also</h3>
<ul>
+5
View File
@@ -192,6 +192,11 @@ an item in an array field. To just get the email address of the first
contributor in the list, you can run:</p>
<pre lang="bash"><code>npm pkg get contributors[0].email
</code></pre>
<p>For complex fields you can also name a property in square brackets
to specifically select a child field. This is especially helpful
with the exports object:</p>
<pre lang="bash"><code>npm pkg get "exports[.].require"
</code></pre>
</li>
<li>
<p><code>npm pkg set &lt;field&gt;=&lt;value&gt;</code></p>
-3
View File
@@ -352,9 +352,6 @@ this warning is treated as a failure.</p>
</ul>
<p>If set to false, then ignore <code>package-lock.json</code> files when installing. This
will also prevent <em>writing</em> <code>package-lock.json</code> if <code>save</code> is true.</p>
<p>When package package-locks are disabled, automatic pruning of extraneous
modules will also be disabled. To remove extraneous modules with
package-locks disabled use <code>npm prune</code>.</p>
<p>This configuration does not affect <code>npm ci</code>.</p>
<!-- raw HTML omitted -->
<!-- raw HTML omitted -->
+1 -1
View File
@@ -149,7 +149,7 @@ npm command-line interface
<!-- raw HTML omitted -->
<!-- raw HTML omitted -->
<h3 id="version">Version</h3>
<p>8.8.0</p>
<p>8.9.0</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
-3
View File
@@ -1123,9 +1123,6 @@ password, npm will prompt on the command line for one.</p>
</ul>
<p>If set to false, then ignore <code>package-lock.json</code> files when installing. This
will also prevent <em>writing</em> <code>package-lock.json</code> if <code>save</code> is true.</p>
<p>When package package-locks are disabled, automatic pruning of extraneous
modules will also be disabled. To remove extraneous modules with
package-locks disabled use <code>npm prune</code>.</p>
<p>This configuration does not affect <code>npm ci</code>.</p>
<!-- raw HTML omitted -->
<!-- raw HTML omitted -->
+12 -22
View File
@@ -1,5 +1,4 @@
const cacache = require('cacache')
const chalk = require('chalk')
const fs = require('fs')
const fetch = require('make-fetch-happen')
const table = require('text-table')
@@ -102,28 +101,19 @@ class Doctor extends BaseCommand {
messages.push(line)
}
const outHead = ['Check', 'Value', 'Recommendation/Notes'].map(
!this.npm.color ? h => h : h => chalk.underline(h)
)
const outHead = ['Check', 'Value', 'Recommendation/Notes'].map(h => this.npm.chalk.underline(h))
let allOk = true
const outBody = messages.map(
!this.npm.color
? item => {
allOk = allOk && item[1]
item[1] = item[1] ? 'ok' : 'not ok'
item[2] = String(item[2])
return item
}
: item => {
allOk = allOk && item[1]
if (!item[1]) {
item[0] = chalk.red(item[0])
item[2] = chalk.magenta(String(item[2]))
}
item[1] = item[1] ? chalk.green('ok') : chalk.red('not ok')
return item
}
)
const outBody = messages.map(item => {
if (!item[1]) {
allOk = false
item[0] = this.npm.chalk.red(item[0])
item[1] = this.npm.chalk.red('not ok')
item[2] = this.npm.chalk.magenta(String(item[2]))
} else {
item[1] = this.npm.chalk.green('ok')
}
return item
})
const outTable = [outHead, ...outBody]
const tableOpts = {
stringLength: s => ansiTrim(s).length,
+3
View File
@@ -73,6 +73,9 @@ class Exec extends BaseCommand {
return libexec({
...flatOptions,
// we explicitly set packageLockOnly to false because if it's true
// when we try to install a missing package, we won't actually install it
packageLockOnly: false,
args,
call,
localBin,
+37 -14
View File
@@ -22,6 +22,8 @@ class Owner extends BaseCommand {
static params = [
'registry',
'otp',
'workspace',
'workspaces',
]
static usage = [
@@ -69,22 +71,43 @@ class Owner extends BaseCommand {
}
async exec ([action, ...args]) {
switch (action) {
case 'ls':
case 'list':
return this.ls(args[0])
case 'add':
return this.changeOwners(args[0], args[1], 'add')
case 'rm':
case 'remove':
return this.changeOwners(args[0], args[1], 'rm')
default:
if (action === 'ls' || action === 'list') {
await this.ls(args[0])
} else if (action === 'add') {
await this.changeOwners(args[0], args[1], 'add')
} else if (action === 'rm' || action === 'remove') {
await this.changeOwners(args[0], args[1], 'rm')
} else {
throw this.usageError()
}
}
async execWorkspaces ([action, ...args], filters) {
await this.setWorkspaces(filters)
// ls pkg or owner add/rm package
if ((action === 'ls' && args.length > 0) || args.length > 1) {
const implicitWorkspaces = this.npm.config.get('workspace', 'default')
if (implicitWorkspaces.length === 0) {
log.warn(`Ignoring specified workspace(s)`)
}
return this.exec([action, ...args])
}
for (const [name] of this.workspaces) {
if (action === 'ls' || action === 'list') {
await this.ls(name)
} else if (action === 'add') {
await this.changeOwners(args[0], name, 'add')
} else if (action === 'rm' || action === 'remove') {
await this.changeOwners(args[0], name, 'rm')
} else {
throw this.usageError()
}
}
}
async ls (pkg) {
pkg = await this.getPkg(pkg)
pkg = await this.getPkg(this.npm.prefix, pkg)
const spec = npa(pkg)
try {
@@ -101,12 +124,12 @@ class Owner extends BaseCommand {
}
}
async getPkg (pkg) {
async getPkg (prefix, pkg) {
if (!pkg) {
if (this.npm.config.get('global')) {
throw this.usageError()
}
const { name } = await readJson(resolve(this.npm.prefix, 'package.json'))
const { name } = await readJson(resolve(prefix, 'package.json'))
if (!name) {
throw this.usageError()
}
@@ -121,7 +144,7 @@ class Owner extends BaseCommand {
throw this.usageError()
}
pkg = await this.getPkg(pkg)
pkg = await this.getPkg(this.npm.prefix, pkg)
log.verbose(`owner ${addOrRm}`, '%s to %s', user, pkg)
const spec = npa(pkg)
+2 -5
View File
@@ -7,7 +7,6 @@ const runScript = require('@npmcli/run-script')
const pacote = require('pacote')
const npa = require('npm-package-arg')
const npmFetch = require('npm-registry-fetch')
const chalk = require('chalk')
const replaceInfo = require('../utils/replace-info.js')
const otplease = require('../utils/otplease.js')
@@ -151,8 +150,6 @@ class Publish extends BaseCommand {
const results = {}
const json = this.npm.config.get('json')
const { silent } = this.npm
const noop = a => a
const color = this.npm.color ? chalk : { green: noop, bold: noop }
await this.setWorkspaces(filters)
for (const [name, workspace] of this.workspaces.entries()) {
@@ -164,9 +161,9 @@ class Publish extends BaseCommand {
log.warn(
'publish',
`Skipping workspace ${
color.green(name)
this.npm.chalk.green(name)
}, marked as ${
color.bold('private')
this.npm.chalk.bold('private')
}`
)
continue
+15 -4
View File
@@ -1,16 +1,15 @@
const EventEmitter = require('events')
const { resolve, dirname, join } = require('path')
const Config = require('@npmcli/config')
const chalk = require('chalk')
const which = require('which')
const fs = require('@npmcli/fs')
// Patch the global fs module here at the app level
require('graceful-fs').gracefulify(require('fs'))
const { definitions, flatten, shorthands } = require('./utils/config/index.js')
const usage = require('./utils/npm-usage.js')
const which = require('which')
const fs = require('@npmcli/fs')
const LogFile = require('./utils/log-file.js')
const Timers = require('./utils/timers.js')
const Display = require('./utils/display.js')
@@ -37,6 +36,7 @@ class Npm extends EventEmitter {
#tmpFolder = null
#title = 'npm'
#argvClean = []
#chalk = null
#logFile = new LogFile()
#display = new Display()
@@ -322,6 +322,17 @@ class Npm extends EventEmitter {
return this.flatOptions.color
}
get chalk () {
if (!this.#chalk) {
let level = chalk.level
if (!this.color) {
level = 0
}
this.#chalk = new chalk.Instance({ level })
}
return this.#chalk
}
get logColor () {
return this.flatOptions.logColor
}
-4
View File
@@ -1448,10 +1448,6 @@ define('package-lock', {
This will also prevent _writing_ \`package-lock.json\` if \`save\` is
true.
When package package-locks are disabled, automatic pruning of extraneous
modules will also be disabled. To remove extraneous modules with
package-locks disabled use \`npm prune\`.
This configuration does not affect \`npm ci\`.
`,
flatten: (key, obj, flatOptions) => {
+1 -1
View File
@@ -1,4 +1,4 @@
.TH "NPM\-ACCESS" "1" "April 2022" "" ""
.TH "NPM\-ACCESS" "1" "May 2022" "" ""
.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 2022" "" ""
.TH "NPM\-ADDUSER" "1" "May 2022" "" ""
.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 2022" "" ""
.TH "NPM\-AUDIT" "1" "May 2022" "" ""
.SH "NAME"
\fBnpm-audit\fR \- Run a security audit
.SS Synopsis
+1 -1
View File
@@ -1,4 +1,4 @@
.TH "NPM\-BIN" "1" "April 2022" "" ""
.TH "NPM\-BIN" "1" "May 2022" "" ""
.SH "NAME"
\fBnpm-bin\fR \- Display npm bin folder
.SS Synopsis
+1 -1
View File
@@ -1,4 +1,4 @@
.TH "NPM\-BUGS" "1" "April 2022" "" ""
.TH "NPM\-BUGS" "1" "May 2022" "" ""
.SH "NAME"
\fBnpm-bugs\fR \- Report bugs for a package in a web browser
.SS Synopsis
+1 -1
View File
@@ -1,4 +1,4 @@
.TH "NPM\-CACHE" "1" "April 2022" "" ""
.TH "NPM\-CACHE" "1" "May 2022" "" ""
.SH "NAME"
\fBnpm-cache\fR \- Manipulates packages cache
.SS Synopsis
+1 -1
View File
@@ -1,4 +1,4 @@
.TH "NPM\-CI" "1" "April 2022" "" ""
.TH "NPM\-CI" "1" "May 2022" "" ""
.SH "NAME"
\fBnpm-ci\fR \- Install a project with a clean slate
.SS Synopsis
+1 -1
View File
@@ -1,4 +1,4 @@
.TH "NPM\-COMPLETION" "1" "April 2022" "" ""
.TH "NPM\-COMPLETION" "1" "May 2022" "" ""
.SH "NAME"
\fBnpm-completion\fR \- Tab Completion for npm
.SS Synopsis
+1 -1
View File
@@ -1,4 +1,4 @@
.TH "NPM\-CONFIG" "1" "April 2022" "" ""
.TH "NPM\-CONFIG" "1" "May 2022" "" ""
.SH "NAME"
\fBnpm-config\fR \- Manage the npm configuration files
.SS Synopsis
+1 -5
View File
@@ -1,4 +1,4 @@
.TH "NPM\-DEDUPE" "1" "April 2022" "" ""
.TH "NPM\-DEDUPE" "1" "May 2022" "" ""
.SH "NAME"
\fBnpm-dedupe\fR \- Reduce duplication in the package tree
.SS Synopsis
@@ -141,10 +141,6 @@ Type: Boolean
If set to false, then ignore \fBpackage\-lock\.json\fP files when installing\. This
will also prevent \fIwriting\fR \fBpackage\-lock\.json\fP if \fBsave\fP is true\.
.P
When package package\-locks are disabled, automatic pruning of extraneous
modules will also be disabled\. To remove extraneous modules with
package\-locks disabled use \fBnpm prune\fP\|\.
.P
This configuration does not affect \fBnpm ci\fP\|\.
.SS \fBomit\fP
.RS 0
+1 -1
View File
@@ -1,4 +1,4 @@
.TH "NPM\-DEPRECATE" "1" "April 2022" "" ""
.TH "NPM\-DEPRECATE" "1" "May 2022" "" ""
.SH "NAME"
\fBnpm-deprecate\fR \- Deprecate a version of a package
.SS Synopsis
+1 -1
View File
@@ -1,4 +1,4 @@
.TH "NPM\-DIFF" "1" "April 2022" "" ""
.TH "NPM\-DIFF" "1" "May 2022" "" ""
.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 2022" "" ""
.TH "NPM\-DIST\-TAG" "1" "May 2022" "" ""
.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 2022" "" ""
.TH "NPM\-DOCS" "1" "May 2022" "" ""
.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 2022" "" ""
.TH "NPM\-DOCTOR" "1" "May 2022" "" ""
.SH "NAME"
\fBnpm-doctor\fR \- Check your npm environment
.SS Synopsis
+1 -1
View File
@@ -1,4 +1,4 @@
.TH "NPM\-EDIT" "1" "April 2022" "" ""
.TH "NPM\-EDIT" "1" "May 2022" "" ""
.SH "NAME"
\fBnpm-edit\fR \- Edit an installed package
.SS Synopsis
+1 -1
View File
@@ -1,4 +1,4 @@
.TH "NPM\-EXEC" "1" "April 2022" "" ""
.TH "NPM\-EXEC" "1" "May 2022" "" ""
.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 2022" "" ""
.TH "NPM\-EXPLAIN" "1" "May 2022" "" ""
.SH "NAME"
\fBnpm-explain\fR \- Explain installed packages
.SS Synopsis
+1 -1
View File
@@ -1,4 +1,4 @@
.TH "NPM\-EXPLORE" "1" "April 2022" "" ""
.TH "NPM\-EXPLORE" "1" "May 2022" "" ""
.SH "NAME"
\fBnpm-explore\fR \- Browse an installed package
.SS Synopsis
+1 -5
View File
@@ -1,4 +1,4 @@
.TH "NPM\-FIND\-DUPES" "1" "April 2022" "" ""
.TH "NPM\-FIND\-DUPES" "1" "May 2022" "" ""
.SH "NAME"
\fBnpm-find-dupes\fR \- Find duplication in the package tree
.SS Synopsis
@@ -75,10 +75,6 @@ Type: Boolean
If set to false, then ignore \fBpackage\-lock\.json\fP files when installing\. This
will also prevent \fIwriting\fR \fBpackage\-lock\.json\fP if \fBsave\fP is true\.
.P
When package package\-locks are disabled, automatic pruning of extraneous
modules will also be disabled\. To remove extraneous modules with
package\-locks disabled use \fBnpm prune\fP\|\.
.P
This configuration does not affect \fBnpm ci\fP\|\.
.SS \fBomit\fP
.RS 0
+1 -1
View File
@@ -1,4 +1,4 @@
.TH "NPM\-FUND" "1" "April 2022" "" ""
.TH "NPM\-FUND" "1" "May 2022" "" ""
.SH "NAME"
\fBnpm-fund\fR \- Retrieve funding information
.SS Synopsis
+1 -1
View File
@@ -1,4 +1,4 @@
.TH "NPM\-HELP\-SEARCH" "1" "April 2022" "" ""
.TH "NPM\-HELP\-SEARCH" "1" "May 2022" "" ""
.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 2022" "" ""
.TH "NPM\-HELP" "1" "May 2022" "" ""
.SH "NAME"
\fBnpm-help\fR \- Get help on npm
.SS Synopsis
+1 -1
View File
@@ -1,4 +1,4 @@
.TH "NPM\-HOOK" "1" "April 2022" "" ""
.TH "NPM\-HOOK" "1" "May 2022" "" ""
.SH "NAME"
\fBnpm-hook\fR \- Manage registry hooks
.SS Synopsis
+1 -1
View File
@@ -1,4 +1,4 @@
.TH "NPM\-INIT" "1" "April 2022" "" ""
.TH "NPM\-INIT" "1" "May 2022" "" ""
.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 2022" "" ""
.TH "NPM\-INSTALL\-CI\-TEST" "1" "May 2022" "" ""
.SH "NAME"
\fBnpm-install-ci-test\fR \- Install a project with a clean slate and run tests
.SS Synopsis
+1 -5
View File
@@ -1,4 +1,4 @@
.TH "NPM\-INSTALL\-TEST" "1" "April 2022" "" ""
.TH "NPM\-INSTALL\-TEST" "1" "May 2022" "" ""
.SH "NAME"
\fBnpm-install-test\fR \- Install package(s) and run tests
.SS Synopsis
@@ -155,10 +155,6 @@ Type: Boolean
If set to false, then ignore \fBpackage\-lock\.json\fP files when installing\. This
will also prevent \fIwriting\fR \fBpackage\-lock\.json\fP if \fBsave\fP is true\.
.P
When package package\-locks are disabled, automatic pruning of extraneous
modules will also be disabled\. To remove extraneous modules with
package\-locks disabled use \fBnpm prune\fP\|\.
.P
This configuration does not affect \fBnpm ci\fP\|\.
.SS \fBforeground\-scripts\fP
.RS 0
+1 -5
View File
@@ -1,4 +1,4 @@
.TH "NPM\-INSTALL" "1" "April 2022" "" ""
.TH "NPM\-INSTALL" "1" "May 2022" "" ""
.SH "NAME"
\fBnpm-install\fR \- Install a package
.SS Synopsis
@@ -566,10 +566,6 @@ Type: Boolean
If set to false, then ignore \fBpackage\-lock\.json\fP files when installing\. This
will also prevent \fIwriting\fR \fBpackage\-lock\.json\fP if \fBsave\fP is true\.
.P
When package package\-locks are disabled, automatic pruning of extraneous
modules will also be disabled\. To remove extraneous modules with
package\-locks disabled use \fBnpm prune\fP\|\.
.P
This configuration does not affect \fBnpm ci\fP\|\.
.SS \fBforeground\-scripts\fP
.RS 0
+1 -5
View File
@@ -1,4 +1,4 @@
.TH "NPM\-LINK" "1" "April 2022" "" ""
.TH "NPM\-LINK" "1" "May 2022" "" ""
.SH "NAME"
\fBnpm-link\fR \- Symlink a package folder
.SS Synopsis
@@ -223,10 +223,6 @@ Type: Boolean
If set to false, then ignore \fBpackage\-lock\.json\fP files when installing\. This
will also prevent \fIwriting\fR \fBpackage\-lock\.json\fP if \fBsave\fP is true\.
.P
When package package\-locks are disabled, automatic pruning of extraneous
modules will also be disabled\. To remove extraneous modules with
package\-locks disabled use \fBnpm prune\fP\|\.
.P
This configuration does not affect \fBnpm ci\fP\|\.
.SS \fBomit\fP
.RS 0
+1 -1
View File
@@ -1,4 +1,4 @@
.TH "NPM\-LOGOUT" "1" "April 2022" "" ""
.TH "NPM\-LOGOUT" "1" "May 2022" "" ""
.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 2022" "" ""
.TH "NPM\-LS" "1" "May 2022" "" ""
.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@8\.8\.0 /path/to/npm
npm@8\.9\.0 /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 2022" "" ""
.TH "NPM\-ORG" "1" "May 2022" "" ""
.SH "NAME"
\fBnpm-org\fR \- Manage orgs
.SS Synopsis
+1 -1
View File
@@ -1,4 +1,4 @@
.TH "NPM\-OUTDATED" "1" "April 2022" "" ""
.TH "NPM\-OUTDATED" "1" "May 2022" "" ""
.SH "NAME"
\fBnpm-outdated\fR \- Check for outdated packages
.SS Synopsis
+55 -1
View File
@@ -1,4 +1,4 @@
.TH "NPM\-OWNER" "1" "April 2022" "" ""
.TH "NPM\-OWNER" "1" "May 2022" "" ""
.SH "NAME"
\fBnpm-owner\fR \- Manage package owners
.SS Synopsis
@@ -62,6 +62,60 @@ when publishing or changing package permissions with \fBnpm access\fP\|\.
.P
If not set, and a registry response fails with a challenge for a one\-time
password, npm will prompt on the command line for one\.
.SS \fBworkspace\fP
.RS 0
.IP \(bu 2
Default:
.IP \(bu 2
Type: String (can be set multiple times)
.RE
.P
Enable running a command in the context of the configured workspaces of the
current project while filtering by running only the workspaces defined by
this configuration option\.
.P
Valid values for the \fBworkspace\fP config are either:
.RS 0
.IP \(bu 2
Workspace names
.IP \(bu 2
Path to a workspace directory
.IP \(bu 2
Path to a parent workspace directory (will result in selecting all
workspaces within that folder)
.RE
.P
When set for the \fBnpm init\fP command, this may be set to the folder of a
workspace which does not yet exist, to create the folder and set it up as a
brand new workspace within the project\.
.P
This value is not exported to the environment for child processes\.
.SS \fBworkspaces\fP
.RS 0
.IP \(bu 2
Default: null
.IP \(bu 2
Type: null or Boolean
.RE
.P
Set to true to run the command in the context of \fBall\fR configured
workspaces\.
.P
Explicitly setting this to false will cause commands like \fBinstall\fP to
ignore workspaces altogether\. When not set explicitly:
.RS 0
.IP \(bu 2
Commands that operate on the \fBnode_modules\fP tree (install, update, etc\.)
will link workspaces into the \fBnode_modules\fP folder\. \- Commands that do
other things (test, exec, publish, etc\.) will operate on the root project,
\fIunless\fR one or more workspaces are specified in the \fBworkspace\fP config\.
.RE
.P
This value is not exported to the environment for child processes\.
.SS See Also
.RS 0
.IP \(bu 2
+1 -1
View File
@@ -1,4 +1,4 @@
.TH "NPM\-PACK" "1" "April 2022" "" ""
.TH "NPM\-PACK" "1" "May 2022" "" ""
.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 2022" "" ""
.TH "NPM\-PING" "1" "May 2022" "" ""
.SH "NAME"
\fBnpm-ping\fR \- Ping npm registry
.SS Synopsis
+10 -1
View File
@@ -1,4 +1,4 @@
.TH "NPM\-PKG" "1" "April 2022" "" ""
.TH "NPM\-PKG" "1" "May 2022" "" ""
.SH "NAME"
\fBnpm-pkg\fR \- Manages your package\.json
.SS Synopsis
@@ -68,6 +68,15 @@ Returned values are always in \fBjson\fR format\.
.nf
npm pkg get contributors[0]\.email
.fi
.RE
For complex fields you can also name a property in square brackets
to specifically select a child field\. This is especially helpful
with the exports object:
.P
.RS 2
.nf
npm pkg get "exports[\.]\.require"
.fi
.RE
.IP \(bu 2
\fBnpm pkg set <field>=<value>\fP
+1 -1
View File
@@ -1,4 +1,4 @@
.TH "NPM\-PREFIX" "1" "April 2022" "" ""
.TH "NPM\-PREFIX" "1" "May 2022" "" ""
.SH "NAME"
\fBnpm-prefix\fR \- Display prefix
.SS Synopsis
+1 -1
View File
@@ -1,4 +1,4 @@
.TH "NPM\-PROFILE" "1" "April 2022" "" ""
.TH "NPM\-PROFILE" "1" "May 2022" "" ""
.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 2022" "" ""
.TH "NPM\-PRUNE" "1" "May 2022" "" ""
.SH "NAME"
\fBnpm-prune\fR \- Remove extraneous packages
.SS Synopsis
+1 -1
View File
@@ -1,4 +1,4 @@
.TH "NPM\-PUBLISH" "1" "April 2022" "" ""
.TH "NPM\-PUBLISH" "1" "May 2022" "" ""
.SH "NAME"
\fBnpm-publish\fR \- Publish a package
.SS Synopsis
+1 -1
View File
@@ -1,4 +1,4 @@
.TH "NPM\-REBUILD" "1" "April 2022" "" ""
.TH "NPM\-REBUILD" "1" "May 2022" "" ""
.SH "NAME"
\fBnpm-rebuild\fR \- Rebuild a package
.SS Synopsis
+1 -1
View File
@@ -1,4 +1,4 @@
.TH "NPM\-REPO" "1" "April 2022" "" ""
.TH "NPM\-REPO" "1" "May 2022" "" ""
.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 2022" "" ""
.TH "NPM\-RESTART" "1" "May 2022" "" ""
.SH "NAME"
\fBnpm-restart\fR \- Restart a package
.SS Synopsis
+1 -1
View File
@@ -1,4 +1,4 @@
.TH "NPM\-ROOT" "1" "April 2022" "" ""
.TH "NPM\-ROOT" "1" "May 2022" "" ""
.SH "NAME"
\fBnpm-root\fR \- Display npm root
.SS Synopsis
+1 -1
View File
@@ -1,4 +1,4 @@
.TH "NPM\-RUN\-SCRIPT" "1" "April 2022" "" ""
.TH "NPM\-RUN\-SCRIPT" "1" "May 2022" "" ""
.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 2022" "" ""
.TH "NPM\-SEARCH" "1" "May 2022" "" ""
.SH "NAME"
\fBnpm-search\fR \- Search for packages
.SS Synopsis
+1 -1
View File
@@ -1,4 +1,4 @@
.TH "NPM\-SET\-SCRIPT" "1" "April 2022" "" ""
.TH "NPM\-SET\-SCRIPT" "1" "May 2022" "" ""
.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 2022" "" ""
.TH "NPM\-SHRINKWRAP" "1" "May 2022" "" ""
.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 2022" "" ""
.TH "NPM\-STAR" "1" "May 2022" "" ""
.SH "NAME"
\fBnpm-star\fR \- Mark your favorite packages
.SS Synopsis
+1 -1
View File
@@ -1,4 +1,4 @@
.TH "NPM\-STARS" "1" "April 2022" "" ""
.TH "NPM\-STARS" "1" "May 2022" "" ""
.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 2022" "" ""
.TH "NPM\-START" "1" "May 2022" "" ""
.SH "NAME"
\fBnpm-start\fR \- Start a package
.SS Synopsis
+1 -1
View File
@@ -1,4 +1,4 @@
.TH "NPM\-STOP" "1" "April 2022" "" ""
.TH "NPM\-STOP" "1" "May 2022" "" ""
.SH "NAME"
\fBnpm-stop\fR \- Stop a package
.SS Synopsis
+1 -1
View File
@@ -1,4 +1,4 @@
.TH "NPM\-TEAM" "1" "April 2022" "" ""
.TH "NPM\-TEAM" "1" "May 2022" "" ""
.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 2022" "" ""
.TH "NPM\-TEST" "1" "May 2022" "" ""
.SH "NAME"
\fBnpm-test\fR \- Test a package
.SS Synopsis
+1 -1
View File
@@ -1,4 +1,4 @@
.TH "NPM\-TOKEN" "1" "April 2022" "" ""
.TH "NPM\-TOKEN" "1" "May 2022" "" ""
.SH "NAME"
\fBnpm-token\fR \- Manage your authentication tokens
.SS Synopsis
+1 -1
View File
@@ -1,4 +1,4 @@
.TH "NPM\-UNINSTALL" "1" "April 2022" "" ""
.TH "NPM\-UNINSTALL" "1" "May 2022" "" ""
.SH "NAME"
\fBnpm-uninstall\fR \- Remove a package
.SS Synopsis
+1 -1
View File
@@ -1,4 +1,4 @@
.TH "NPM\-UNPUBLISH" "1" "April 2022" "" ""
.TH "NPM\-UNPUBLISH" "1" "May 2022" "" ""
.SH "NAME"
\fBnpm-unpublish\fR \- Remove a package from the registry
.SS Synopsis
+1 -1
View File
@@ -1,4 +1,4 @@
.TH "NPM\-UNSTAR" "1" "April 2022" "" ""
.TH "NPM\-UNSTAR" "1" "May 2022" "" ""
.SH "NAME"
\fBnpm-unstar\fR \- Remove an item from your favorite packages
.SS Synopsis
+1 -5
View File
@@ -1,4 +1,4 @@
.TH "NPM\-UPDATE" "1" "April 2022" "" ""
.TH "NPM\-UPDATE" "1" "May 2022" "" ""
.SH "NAME"
\fBnpm-update\fR \- Update packages
.SS Synopsis
@@ -279,10 +279,6 @@ Type: Boolean
If set to false, then ignore \fBpackage\-lock\.json\fP files when installing\. This
will also prevent \fIwriting\fR \fBpackage\-lock\.json\fP if \fBsave\fP is true\.
.P
When package package\-locks are disabled, automatic pruning of extraneous
modules will also be disabled\. To remove extraneous modules with
package\-locks disabled use \fBnpm prune\fP\|\.
.P
This configuration does not affect \fBnpm ci\fP\|\.
.SS \fBforeground\-scripts\fP
.RS 0
+1 -1
View File
@@ -1,4 +1,4 @@
.TH "NPM\-VERSION" "1" "April 2022" "" ""
.TH "NPM\-VERSION" "1" "May 2022" "" ""
.SH "NAME"
\fBnpm-version\fR \- Bump a package version
.SS Synopsis
+1 -1
View File
@@ -1,4 +1,4 @@
.TH "NPM\-VIEW" "1" "April 2022" "" ""
.TH "NPM\-VIEW" "1" "May 2022" "" ""
.SH "NAME"
\fBnpm-view\fR \- View registry info
.SS Synopsis
+1 -1
View File
@@ -1,4 +1,4 @@
.TH "NPM\-WHOAMI" "1" "April 2022" "" ""
.TH "NPM\-WHOAMI" "1" "May 2022" "" ""
.SH "NAME"
\fBnpm-whoami\fR \- Display npm username
.SS Synopsis
+2 -2
View File
@@ -1,10 +1,10 @@
.TH "NPM" "1" "April 2022" "" ""
.TH "NPM" "1" "May 2022" "" ""
.SH "NAME"
\fBnpm\fR \- javascript package manager
.SS Synopsis
.SS Version
.P
8\.8\.0
8\.9\.0
.SS Description
.P
npm is the package manager for the Node JavaScript platform\. It puts
+1 -1
View File
@@ -1,4 +1,4 @@
.TH "NPX" "1" "April 2022" "" ""
.TH "NPX" "1" "May 2022" "" ""
.SH "NAME"
\fBnpx\fR \- Run a command from a local or remote npm package
.SS Synopsis
+1 -1
View File
@@ -1,4 +1,4 @@
.TH "FOLDERS" "5" "April 2022" "" ""
.TH "FOLDERS" "5" "May 2022" "" ""
.SH "NAME"
\fBfolders\fR \- Folder Structures Used by npm
.SS Description
+1 -1
View File
@@ -1,4 +1,4 @@
.TH "INSTALL" "5" "April 2022" "" ""
.TH "INSTALL" "5" "May 2022" "" ""
.SH "NAME"
\fBinstall\fR \- Download and install node and npm
.SS Description
+1 -1
View File
@@ -1,4 +1,4 @@
.TH "NPM\-SHRINKWRAP\.JSON" "5" "April 2022" "" ""
.TH "NPM\-SHRINKWRAP\.JSON" "5" "May 2022" "" ""
.SH "NAME"
\fBnpm-shrinkwrap.json\fR \- A publishable lockfile
.SS Description
+1 -1
View File
@@ -1,4 +1,4 @@
.TH "NPMRC" "5" "April 2022" "" ""
.TH "NPMRC" "5" "May 2022" "" ""
.SH "NAME"
\fBnpmrc\fR \- The npm config files
.SS Description
+1 -1
View File
@@ -1,4 +1,4 @@
.TH "PACKAGE\.JSON" "5" "April 2022" "" ""
.TH "PACKAGE\.JSON" "5" "May 2022" "" ""
.SH "NAME"
\fBpackage.json\fR \- Specifics of npm's package\.json handling
.SS Description
+1 -1
View File
@@ -1,4 +1,4 @@
.TH "PACKAGE\-LOCK\.JSON" "5" "April 2022" "" ""
.TH "PACKAGE\-LOCK\.JSON" "5" "May 2022" "" ""
.SH "NAME"
\fBpackage-lock.json\fR \- A manifestation of the manifest
.SS Description
+1 -5
View File
@@ -1,4 +1,4 @@
.TH "CONFIG" "7" "April 2022" "" ""
.TH "CONFIG" "7" "May 2022" "" ""
.SH "NAME"
\fBconfig\fR \- More than you probably want to know about npm configuration
.SS Description
@@ -1284,10 +1284,6 @@ Type: Boolean
If set to false, then ignore \fBpackage\-lock\.json\fP files when installing\. This
will also prevent \fIwriting\fR \fBpackage\-lock\.json\fP if \fBsave\fP is true\.
.P
When package package\-locks are disabled, automatic pruning of extraneous
modules will also be disabled\. To remove extraneous modules with
package\-locks disabled use \fBnpm prune\fP\|\.
.P
This configuration does not affect \fBnpm ci\fP\|\.
.SS \fBpackage\-lock\-only\fP
.RS 0
+1 -1
View File
@@ -1,4 +1,4 @@
.TH "DEVELOPERS" "7" "April 2022" "" ""
.TH "DEVELOPERS" "7" "May 2022" "" ""
.SH "NAME"
\fBdevelopers\fR \- Developer Guide
.SS Description
+1 -1
View File
@@ -1,4 +1,4 @@
.TH "LOGGING" "7" "April 2022" "" ""
.TH "LOGGING" "7" "May 2022" "" ""
.SH "NAME"
\fBLogging\fR \- Why, What & How We Log
.SS Description
Loaded 100 of 127 files, more files were not shown because too many files have changed in this diff. Show more