@@ -7,7 +7,7 @@ description: Remove a package
77### Synopsis
88
99``` bash
10- npm uninstall [< @scope> /]< pkg> [@< version> ]... [--no-save]
10+ npm uninstall [< @scope> /]< pkg> [@< version> ]... [--save | -- no-save]
1111
1212aliases: remove, rm, r, un, unlink
1313```
@@ -24,9 +24,13 @@ It also removes the package from the `dependencies`, `devDependencies`,
2424Futher, if you have an ` npm-shrinkwrap.json ` or ` package-lock.json ` , npm
2525will update those files as well.
2626
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 you may need to use this if you have for instance
33+ ` save=false ` in your ` npmrc ` file
3034
3135In global mode (ie, with ` -g ` or ` --global ` appended to the command),
3236it uninstalls the current package context as a global package.
0 commit comments