@@ -7,7 +7,7 @@ description: Remove a package
7
7
### Synopsis
8
8
9
9
``` bash
10
- npm uninstall [< @scope> /]< pkg> [@< version> ]... [--no-save]
10
+ npm uninstall [< @scope> /]< pkg> [@< version> ]... [--save | -- no-save]
11
11
12
12
aliases: remove, rm, r, un, unlink
13
13
```
@@ -24,9 +24,13 @@ It also removes the package from the `dependencies`, `devDependencies`,
24
24
Futher, if you have an ` npm-shrinkwrap.json ` or ` package-lock.json ` , npm
25
25
will update those files as well.
26
26
27
- ` npm uninstall ` takes one optional flag, ` --no-save ` which will tell npm
28
- not to remove the package from your ` package.json ` ,
29
- ` npm-shrinkwrap.json ` , or ` package-lock.json ` files
27
+ ` --no-save ` will tell npm not to remove the package from your
28
+ ` package.json ` , ` npm-shrinkwrap.json ` , or ` package-lock.json ` files.
29
+
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 may be needed if you have for instance ` save=false ` in your
33
+ ` npmrc ` file
30
34
31
35
In global mode (ie, with ` -g ` or ` --global ` appended to the command),
32
36
it uninstalls the current package context as a global package.
0 commit comments