summaryrefslogtreecommitdiff
path: root/deps/npm/docs/content/commands/npm-update.md
diff options
context:
space:
mode:
Diffstat (limited to 'deps/npm/docs/content/commands/npm-update.md')
-rw-r--r--deps/npm/docs/content/commands/npm-update.md31
1 files changed, 29 insertions, 2 deletions
diff --git a/deps/npm/docs/content/commands/npm-update.md b/deps/npm/docs/content/commands/npm-update.md
index 1889d60569..e1b48a8ed4 100644
--- a/deps/npm/docs/content/commands/npm-update.md
+++ b/deps/npm/docs/content/commands/npm-update.md
@@ -6,12 +6,21 @@ description: Update packages
### Synopsis
+<!-- AUTOGENERATED USAGE DESCRIPTIONS START -->
+<!-- automatically generated, do not edit manually -->
+<!-- see lib/commands/update.js -->
+
```bash
-npm update [-g] [<pkg>...]
+npm update [<pkg>...]
-aliases: up, upgrade
+aliases: up, upgrade, udpate
```
+<!-- automatically generated, do not edit manually -->
+<!-- see lib/commands/update.js -->
+
+<!-- AUTOGENERATED USAGE DESCRIPTIONS END -->
+
### Description
This command will update all the packages listed to the latest version
@@ -239,6 +248,24 @@ 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 -->
+<!-- see lib/utils/config/definitions.js -->
+
+#### `save`
+
+* Default: `true` unless when using `npm update` or `npm dedupe` where it
+ defaults to `false`
+* Type: Boolean
+
+Save installed packages to a `package.json` file as dependencies.
+
+When used with the `npm rm` command, removes the dependency from
+`package.json`.
+
+Will also prevent writing to `package-lock.json` if set to `false`.
+
<!-- automatically generated, do not edit manually -->
<!-- see lib/utils/config/definitions.js -->