Skip to content

Commit cd5eeaa

Browse files
committed
fix(docs): re-add -S
1 parent 9b55b79 commit cd5eeaa

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

docs/content/commands/npm-uninstall.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ description: Remove a package
77
### Synopsis
88

99
```bash
10-
npm uninstall [<@scope>/]<pkg>[@<version>]... [--save|--no-save]
10+
npm uninstall [<@scope>/]<pkg>[@<version>]... [-S|--save|--no-save]
1111

1212
aliases: remove, rm, r, un, unlink
1313
```
@@ -27,10 +27,10 @@ will update those files as well.
2727
`--no-save` will tell npm not to remove the package from your
2828
`package.json`, `npm-shrinkwrap.json`, or `package-lock.json` files.
2929

30-
`--save` will tell npm to remove the package from your `package.json`,
31-
`npm-shrinkwrap.json`, and `package-lock.json` files. This is the
32-
default, but you may need to use this if you have for instance
33-
`save=false` in your `npmrc` file
30+
`--save` or `-S` will tell npm to remove the package from your
31+
`package.json`, `npm-shrinkwrap.json`, and `package-lock.json` files.
32+
This is the default, but you may need to use this if you have for
33+
instance `save=false` in your `npmrc` file
3434

3535
In global mode (ie, with `-g` or `--global` appended to the command),
3636
it uninstalls the current package context as a global package.

lib/uninstall.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const completion = require('./utils/completion/installed-shallow.js')
99

1010
const usage = usageUtil(
1111
'uninstall',
12-
'npm uninstall [<@scope>/]<pkg>[@<version>]... [--save, --no-save]'
12+
'npm uninstall [<@scope>/]<pkg>[@<version>]... [-S|--save|--no-save]'
1313
)
1414

1515
const cmd = (args, cb) => rm(args).then(() => cb()).catch(cb)

0 commit comments

Comments
 (0)