diff options
Diffstat (limited to 'docs/content/commands/npm-uninstall.md')
-rw-r--r-- | docs/content/commands/npm-uninstall.md | 22 |
1 files changed, 17 insertions, 5 deletions
diff --git a/docs/content/commands/npm-uninstall.md b/docs/content/commands/npm-uninstall.md index 824d0d876..8132bf6bc 100644 --- a/docs/content/commands/npm-uninstall.md +++ b/docs/content/commands/npm-uninstall.md @@ -6,12 +6,21 @@ description: Remove a package ### Synopsis +<!-- AUTOGENERATED USAGE DESCRIPTIONS START --> +<!-- automatically generated, do not edit manually --> +<!-- see lib/commands/uninstall.js --> + ```bash -npm uninstall [<@scope>/]<pkg>[@<version>]... [-S|--save|--no-save] +npm uninstall [<@scope>/]<pkg>... -aliases: remove, rm, r, un, unlink +aliases: un, unlink, remove, rm, r ``` +<!-- automatically generated, do not edit manually --> +<!-- see lib/commands/uninstall.js --> + +<!-- AUTOGENERATED USAGE DESCRIPTIONS END --> + ### Description This uninstalls a package, completely removing everything npm installed @@ -61,13 +70,16 @@ npm uninstall lodash --no-save <!-- see lib/utils/config/definitions.js --> #### `save` -* Default: true +* 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. +Save installed packages to a `package.json` file as dependencies. When used with the `npm rm` command, removes the dependency from -package.json. +`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 --> |