Skip to content

Commit f8b2156

Browse files
ops+robot@npmjs.comMylesBorins
authored andcommitted
deps: upgrade npm to 8.7.0
PR-URL: #42744 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de>
1 parent 898b475 commit f8b2156

File tree

340 files changed

+4868
-6011
lines changed

Some content is hidden

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

340 files changed

+4868
-6011
lines changed

deps/npm/README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1-
[![GitHub Workflow Status (branch)](https://img.shields.io/github/workflow/status/npm/cli/Node%20CI/latest)](https://github.com/npm/cli/actions?query=workflow%3A%22Node+CI%22+branch%3Alatest) [![Coveralls github branch](https://img.shields.io/coveralls/github/npm/cli/latest)](https://coveralls.io/github/npm/cli?branch=latest)
2-
31
# npm - a JavaScript package manager
42

3+
[![npm version](https://img.shields.io/npm/v/npm.svg)](https://npm.im/npm)
4+
[![license](https://img.shields.io/npm/l/npm.svg)](https://npm.im/npm)
5+
[![CI - cli](https://github.com/npm/cli/actions/workflows/ci.yml/badge.svg)](https://github.com/npm/cli/actions/workflows/ci.yml)
6+
[![Benchmark Suite](https://github.com/npm/cli/actions/workflows/benchmark.yml/badge.svg)](https://github.com/npm/cli/actions/workflows/benchmark.yml)
7+
58
### Requirements
69

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

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -394,6 +394,8 @@ When false, specifying individual workspaces via the `workspace` config, or
394394
all workspaces via the `workspaces` flag, will cause npm to operate only on
395395
the specified workspaces, and not on the root project.
396396

397+
This value is not exported to the environment for child processes.
398+
397399
<!-- automatically generated, do not edit manually -->
398400
<!-- see lib/utils/config/definitions.js -->
399401

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,13 @@ In short, the main differences between using `npm install` and `npm ci` are:
4646
* It will never write to `package.json` or any of the package-locks:
4747
installs are essentially frozen.
4848

49+
NOTE: If you create your `package-lock.json` file by running `npm install`
50+
with flags that can affect the shape of your dependency tree, such as
51+
`--legacy-peer-deps`, you _must_ provide the same flags to `npm ci` or you
52+
are likely to encounter errors. An easy way to do this is to run
53+
`npm config set legacy-peer-deps=true --location=project` and commit the
54+
`.npmrc` file to your repo.
55+
4956
### Example
5057

5158
Make sure you have a package-lock and an up-to-date install:

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

Lines changed: 5 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -80,11 +80,9 @@ result in new modules being installed.
8080

8181
Using `npm find-dupes` will run the command in `--dry-run` mode.
8282

83-
Note that by default `npm dedupe` will not update the semver values of direct
84-
dependencies in your project `package.json`, if you want to also update
85-
values in `package.json` you can run: `npm dedupe --save` (or add the
86-
`save=true` option to a [configuration file](/configuring-npm/npmrc)
87-
to make that the default behavior).
83+
Note: `npm dedupe` will never update the semver values of direct
84+
dependencies in your project `package.json`, if you want to update
85+
values in `package.json` you can run: `npm update --save` instead.
8886

8987
### Configuration
9088

@@ -158,22 +156,6 @@ This configuration does not affect `npm ci`.
158156
<!-- automatically generated, do not edit manually -->
159157
<!-- see lib/utils/config/definitions.js -->
160158
161-
#### `save`
162-
163-
* Default: `true` unless when using `npm update` or `npm dedupe` where it
164-
defaults to `false`
165-
* Type: Boolean
166-
167-
Save installed packages to a `package.json` file as dependencies.
168-
169-
When used with the `npm rm` command, removes the dependency from
170-
`package.json`.
171-
172-
Will also prevent writing to `package-lock.json` if set to `false`.
173-
174-
<!-- automatically generated, do not edit manually -->
175-
<!-- see lib/utils/config/definitions.js -->
176-
177159
#### `omit`
178160
179161
* Default: 'dev' if the `NODE_ENV` environment variable is set to
@@ -323,6 +305,8 @@ When false, specifying individual workspaces via the `workspace` config, or
323305
all workspaces via the `workspaces` flag, will cause npm to operate only on
324306
the specified workspaces, and not on the root project.
325307
308+
This value is not exported to the environment for child processes.
309+
326310
<!-- automatically generated, do not edit manually -->
327311
<!-- see lib/utils/config/definitions.js -->
328312

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,8 @@ When false, specifying individual workspaces via the `workspace` config, or
335335
all workspaces via the `workspaces` flag, will cause npm to operate only on
336336
the specified workspaces, and not on the root project.
337337
338+
This value is not exported to the environment for child processes.
339+
338340
<!-- automatically generated, do not edit manually -->
339341
<!-- see lib/utils/config/definitions.js -->
340342

deps/npm/docs/content/commands/npm-dist-tag.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,8 @@ When false, specifying individual workspaces via the `workspace` config, or
159159
all workspaces via the `workspaces` flag, will cause npm to operate only on
160160
the specified workspaces, and not on the root project.
161161

162+
This value is not exported to the environment for child processes.
163+
162164
<!-- automatically generated, do not edit manually -->
163165
<!-- see lib/utils/config/definitions.js -->
164166

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,8 @@ When false, specifying individual workspaces via the `workspace` config, or
116116
all workspaces via the `workspaces` flag, will cause npm to operate only on
117117
the specified workspaces, and not on the root project.
118118
119+
This value is not exported to the environment for child processes.
120+
119121
<!-- automatically generated, do not edit manually -->
120122
<!-- see lib/utils/config/definitions.js -->
121123

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,8 @@ When false, specifying individual workspaces via the `workspace` config, or
205205
all workspaces via the `workspaces` flag, will cause npm to operate only on
206206
the specified workspaces, and not on the root project.
207207

208+
This value is not exported to the environment for child processes.
209+
208210
<!-- automatically generated, do not edit manually -->
209211
<!-- see lib/utils/config/definitions.js -->
210212

deps/npm/docs/content/commands/npm-find-dupes.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,8 @@ When false, specifying individual workspaces via the `workspace` config, or
229229
all workspaces via the `workspaces` flag, will cause npm to operate only on
230230
the specified workspaces, and not on the root project.
231231

232+
This value is not exported to the environment for child processes.
233+
232234
<!-- automatically generated, do not edit manually -->
233235
<!-- see lib/utils/config/definitions.js -->
234236

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,8 @@ When false, specifying individual workspaces via the `workspace` config, or
264264
all workspaces via the `workspaces` flag, will cause npm to operate only on
265265
the specified workspaces, and not on the root project.
266266

267+
This value is not exported to the environment for child processes.
268+
267269
<!-- automatically generated, do not edit manually -->
268270
<!-- see lib/utils/config/definitions.js -->
269271

0 commit comments

Comments
 (0)