CLI documentation update from CI
CI User committed
Jan 21, 2022 at 02:27 UTC
178b3666b2aafec16149aa371466a4de8b467851
4 files changed
+19
-4
cli/v8
+1
-1
@@ -1 +1 @@
1
-Subproject commit a92665c92940b93e3e41eb8396257d684ee95c5f
1
+Subproject commit 44bbb4933a0fe35999f5628d4bfd8ebb15981763
content/cli/v8/commands/npm-dedupe.md
+6
@@ -82,6 +82,12 @@ result in new modules being installed.
82
83
Using `npm find-dupes` will run the command in `--dry-run` mode.
84
85
+Note that by default `npm dedupe` will not update the semver values of direct
86
+dependencies in your project `package.json`, if you want to also update
87
+values in `package.json` you can run: `npm dedupe --save` (or add the
88
+`save=true` option to a [configuration file](/cli/v8/configuring-npm/npmrc)
89
+to make that the default behavior).
90
+
91
### Configuration
92
93
<!-- AUTOGENERATED CONFIG DESCRIPTIONS START -->
content/cli/v8/commands/npm-update.md
+6
@@ -37,6 +37,12 @@ packages.
37
If no package name is specified, all packages in the specified location (global
38
or local) will be updated.
39
40
+Note that by default `npm update` will not update the semver values of direct
41
+dependencies in your project `package.json`, if you want to also update
42
+values in `package.json` you can run: `npm update --save` (or add the
43
+`save=true` option to a [configuration file](/cli/v8/configuring-npm/npmrc)
44
+to make that the default behavior).
45
+
46
### Example
47
48
For the examples below, assume that the current package is `app` and it depends
content/cli/v8/using-npm/config.md
+6
-3
@@ -1334,13 +1334,16 @@ The base URL of the npm registry.
1334
1335
#### `save`
1336
1337
-* Default: true
1337
+* Default: `true` unless when using `npm update` or `npm dedupe` where it
1338
+ defaults to `false`
1339
* Type: Boolean
1340
1340
-Save installed packages to a package.json file as dependencies.
1341
+Save installed packages to a `package.json` file as dependencies.
1342
1343
When used with the `npm rm` command, removes the dependency from
1343
-package.json.
1344
+`package.json`.
1345
+
1346
+Will also prevent writing to `package-lock.json` if set to `false`.
1347
1348
<!-- automatically generated, do not edit manually -->
1349
<!-- see lib/utils/config/definitions.js -->