Skip to content

Commit 4844935

Browse files
npm-cli-botjuanarbol
authored andcommitted
deps: upgrade npm to 9.1.3
PR-URL: #45693 Backport-PR-URL: #46230 Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Ruy Adorno <[email protected]>
1 parent 8dce62c commit 4844935

File tree

848 files changed

+47132
-26227
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

848 files changed

+47132
-26227
lines changed

deps/npm/README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99

1010
One of the following versions of [Node.js](https://nodejs.org/en/download/) must be installed to run **`npm`**:
1111

12-
* `12.x.x` >= `12.13.0`
13-
* `14.x.x` >= `14.15.0`
14-
* `16.0.0` or higher
12+
* `14.x.x` >= `14.17.0`
13+
* `16.x.x` >= `16.13.0`
14+
* `18.0.0` or higher
1515

1616
### Installation
1717

deps/npm/bin/npx-cli.js

+2
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ for (i = 3; i < process.argv.length; i++) {
9898
}
9999

100100
if (removed.has(key)) {
101+
// eslint-disable-next-line no-console
101102
console.error(`npx: the --${key} argument has been removed.`)
102103
sawRemovedFlags = true
103104
process.argv.splice(i, 1)
@@ -122,6 +123,7 @@ for (i = 3; i < process.argv.length; i++) {
122123
}
123124

124125
if (sawRemovedFlags) {
126+
// eslint-disable-next-line no-console
125127
console.error('See `npm help exec` for more information')
126128
}
127129

deps/npm/docs/README.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# docs
2+
3+
[![CI - docs](https://github.com/npm/cli/actions/workflows/ci-docs.yml/badge.svg)](https://github.com/npm/cli/actions/workflows/ci-docs.yml)
4+
5+
Scripts to build the npm docs.

deps/npm/docs/content/commands/npm-access.md

+21-11
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,13 @@ description: Set access level on published packages
77
### Synopsis
88

99
```bash
10-
npm access public [<package>]
11-
npm access restricted [<package>]
10+
npm access list packages [<user>|<scope>|<scope:team> [<package>]
11+
npm access list collaborators [<package> [<user>]]
12+
npm access get status [<package>]
13+
npm access set status=public|private [<package>]
14+
npm access set mfa=none|publish|automation [<package>]
1215
npm access grant <read-only|read-write> <scope:team> [<package>]
1316
npm access revoke <scope:team> [<package>]
14-
npm access 2fa-required [<package>]
15-
npm access 2fa-not-required [<package>]
16-
npm access ls-packages [<user>|<scope>|<scope:team>]
17-
npm access ls-collaborators [<package> [<user>]]
18-
npm access edit [<package>]
1917
```
2018
2119
### Description
@@ -79,12 +77,17 @@ Management of teams and team memberships is done with the `npm team` command.
7977
8078
### Configuration
8179
82-
#### `registry`
80+
#### `json`
8381
84-
* Default: "https://registry.npmjs.org/"
85-
* Type: URL
82+
* Default: false
83+
* Type: Boolean
8684
87-
The base URL of the npm registry.
85+
Whether or not to output JSON data, rather than the normal output.
86+
87+
* In `npm pkg set` it enables parsing set values with JSON.parse() before
88+
saving them to your `package.json`.
89+
90+
Not supported by all npm commands.
8891
8992
#### `otp`
9093
@@ -97,6 +100,13 @@ when publishing or changing package permissions with `npm access`.
97100
If not set, and a registry response fails with a challenge for a one-time
98101
password, npm will prompt on the command line for one.
99102
103+
#### `registry`
104+
105+
* Default: "https://registry.npmjs.org/"
106+
* Type: URL
107+
108+
The base URL of the npm registry.
109+
100110
### See Also
101111
102112
* [`libnpmaccess`](https://npm.im/libnpmaccess)

deps/npm/docs/content/commands/npm-adduser.md

+8-21
Original file line numberDiff line numberDiff line change
@@ -9,29 +9,19 @@ description: Add a registry user account
99
```bash
1010
npm adduser
1111

12-
aliases: login, add-user
12+
alias: add-user
1313
```
1414

1515
Note: This command is unaware of workspaces.
1616

1717
### Description
1818

19-
Create or verify a user named `<username>` in the specified registry, and
20-
save the credentials to the `.npmrc` file. If no registry is specified,
21-
the default registry will be used (see [`config`](/using-npm/config)).
19+
Create a new user in the specified registry, and save the credentials to
20+
the `.npmrc` file. If no registry is specified, the default registry
21+
will be used (see [`registry`](/using-npm/registry)).
2222

23-
The username, password, and email are read in from prompts.
24-
25-
To reset your password, go to <https://www.npmjs.com/forgot>
26-
27-
To change your email address, go to <https://www.npmjs.com/email-edit>
28-
29-
You may use this command multiple times with the same user account to
30-
authorize on a new machine. When authenticating on a new machine,
31-
the username, password and email address must all match with
32-
your existing record.
33-
34-
`npm login` is an alias to `adduser` and behaves exactly the same way.
23+
When using `legacy` for your `auth-type`, the username, password, and
24+
email are read in from prompts.
3525

3626
### Configuration
3727

@@ -74,11 +64,8 @@ npm init --scope=@foo --yes
7464

7565
#### `auth-type`
7666

77-
* Default: "legacy"
78-
* Type: "legacy", "web", "sso", "saml", "oauth", or "webauthn"
79-
80-
NOTE: auth-type values "sso", "saml", "oauth", and "webauthn" will be
81-
removed in a future version.
67+
* Default: "web"
68+
* Type: "legacy" or "web"
8269

8370
What authentication strategy to use with `login`.
8471

deps/npm/docs/content/commands/npm-audit.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,9 @@ the path `/-/npm/v1/security/advisories/bulk`.
100100

101101
Any packages in the tree that do not have a `version` field in their
102102
package.json file will be ignored. If any `--omit` options are specified
103-
(either via the `--omit` config, or one of the shorthands such as
104-
`--production`, `--only=dev`, and so on), then packages will be omitted
105-
from the submitted payload as appropriate.
103+
(either via the [`--omit` config](/using-npm/config#omit), or one of the
104+
shorthands such as `--production`, `--only=dev`, and so on), then packages will
105+
be omitted from the submitted payload as appropriate.
106106

107107
If the registry responds with an error, or with an invalid response, then
108108
npm will attempt to load advisory data from the `Quick Audit` endpoint.
@@ -179,7 +179,7 @@ vulnerabilities are found _or_ if the remediation is able to successfully
179179
fix all vulnerabilities.
180180

181181
If vulnerabilities were found the exit code will depend on the
182-
`audit-level` configuration setting.
182+
[`audit-level` config](/using-npm/config#audit-level).
183183

184184
### Examples
185185

@@ -408,12 +408,12 @@ This value is not exported to the environment for child processes.
408408

409409
#### `install-links`
410410

411-
* Default: false
411+
* Default: true
412412
* Type: Boolean
413413

414-
When set file: protocol dependencies that exist outside of the project root
415-
will be packed and installed as regular dependencies instead of creating a
416-
symlink. This option has no effect on workspaces.
414+
When set file: protocol dependencies will be packed and installed as regular
415+
dependencies instead of creating a symlink. This option has no effect on
416+
workspaces.
417417

418418
### See Also
419419

deps/npm/docs/content/commands/npm-bin.md

-41
This file was deleted.

deps/npm/docs/content/commands/npm-bugs.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,9 @@ alias: issues
1616
1717
This command tries to guess at the likely location of a package's bug
1818
tracker URL or the `mailto` URL of the support email, and then tries to
19-
open it using the `--browser` config param. If no package name is provided, it
20-
will search for a `package.json` in the current folder and use the `name` property.
19+
open it using the [`--browser` config](/using-npm/config#browser) param. If no
20+
package name is provided, it will search for a `package.json` in the current
21+
folder and use the `name` property.
2122
2223
### Configuration
2324

deps/npm/docs/content/commands/npm-cache.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,7 @@ verify`.
7575
* Default: Windows: `%LocalAppData%\npm-cache`, Posix: `~/.npm`
7676
* Type: Path
7777

78-
The location of npm's cache directory. See [`npm
79-
cache`](/commands/npm-cache)
78+
The location of npm's cache directory.
8079

8180
### See Also
8281

deps/npm/docs/content/commands/npm-ci.md

+28-16
Original file line numberDiff line numberDiff line change
@@ -106,27 +106,39 @@ folder instead of the current working directory. See
106106
* bin files are linked to `{prefix}/bin`
107107
* man pages are linked to `{prefix}/share/man`
108108

109-
#### `global-style`
109+
#### `install-strategy`
110+
111+
* Default: "hoisted"
112+
* Type: "hoisted", "nested", or "shallow"
113+
114+
Sets the strategy for installing packages in node_modules. hoisted
115+
(default): Install non-duplicated in top-level, and duplicated as necessary
116+
within directory structure. nested: (formerly --legacy-bundling) install in
117+
place, no hoisting. shallow (formerly --global-style) only install direct
118+
deps at top-level. linked: (coming soon) install in node_modules/.store,
119+
link in place, unhoisted.
120+
121+
#### `legacy-bundling`
110122

111123
* Default: false
112124
* Type: Boolean
125+
* DEPRECATED: This option has been deprecated in favor of
126+
`--install-strategy=nested`
113127

114-
Causes npm to install the package into your local `node_modules` folder with
115-
the same layout it uses with the global `node_modules` folder. Only your
116-
direct dependencies will show in `node_modules` and everything they depend
117-
on will be flattened in their `node_modules` folders. This obviously will
118-
eliminate some deduping. If used with `legacy-bundling`, `legacy-bundling`
119-
will be preferred.
128+
Instead of hoisting package installs in `node_modules`, install packages in
129+
the same manner that they are depended on. This may cause very deep
130+
directory structures and duplicate package installs as there is no
131+
de-duplicating. Sets `--install-strategy=nested`.
120132

121-
#### `legacy-bundling`
133+
#### `global-style`
122134

123135
* Default: false
124136
* Type: Boolean
137+
* DEPRECATED: This option has been deprecated in favor of
138+
`--install-strategy=shallow`
125139

126-
Causes npm to install the package such that versions of npm prior to 1.4,
127-
such as the one included with node 0.8, can install the package. This
128-
eliminates all automatic deduping. If used with `global-style` this option
129-
will be preferred.
140+
Only install direct dependencies in the top level `node_modules`, but hoist
141+
on deeper dependendencies. Sets `--install-strategy=shallow`.
130142

131143
#### `omit`
132144

@@ -298,12 +310,12 @@ This value is not exported to the environment for child processes.
298310

299311
#### `install-links`
300312

301-
* Default: false
313+
* Default: true
302314
* Type: Boolean
303315

304-
When set file: protocol dependencies that exist outside of the project root
305-
will be packed and installed as regular dependencies instead of creating a
306-
symlink. This option has no effect on workspaces.
316+
When set file: protocol dependencies will be packed and installed as regular
317+
dependencies instead of creating a symlink. This option has no effect on
318+
workspaces.
307319

308320
### See Also
309321

deps/npm/docs/content/commands/npm-config.md

+14-3
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ npm config get [<key> [<key> ...]]
1212
npm config delete <key> [<key> ...]
1313
npm config list [--json]
1414
npm config edit
15+
npm config fix
1516

1617
alias: c
1718
```
@@ -26,7 +27,7 @@ variables, `npmrc` files, and in some cases, the `package.json` file.
2627
See [npmrc](/configuring-npm/npmrc) for more information about the npmrc
2728
files.
2829
29-
See [config(7)](/using-npm/config) for a more thorough explanation of the
30+
See [config](/using-npm/config) for a more thorough explanation of the
3031
mechanisms involved, and a full list of config options available.
3132
3233
The `npm config` command can be used to update and edit the contents
@@ -91,6 +92,16 @@ npm config edit
9192
Opens the config file in an editor. Use the `--global` flag to edit the
9293
global config.
9394
95+
#### fix
96+
97+
```bash
98+
npm config fix
99+
```
100+
101+
Attempts to repair invalid configuration items. Usually this means
102+
attaching authentication config (i.e. `_auth`, `_authToken`) to the
103+
configured `registry`.
104+
94105
### Configuration
95106
96107
#### `json`
@@ -121,8 +132,8 @@ folder instead of the current working directory. See
121132
122133
#### `editor`
123134
124-
* Default: The EDITOR or VISUAL environment variables, or 'notepad.exe' on
125-
Windows, or 'vim' on Unix systems
135+
* Default: The EDITOR or VISUAL environment variables, or
136+
'%SYSTEMROOT%\notepad.exe' on Windows, or 'vi' on Unix systems
126137
* Type: String
127138
128139
The command to run for `npm edit` and `npm config edit`.

0 commit comments

Comments
 (0)