2011-11-22 01:48:45 +08:00
|
|
|
npm-prune(1) -- Remove extraneous packages
|
|
|
|
==========================================
|
|
|
|
|
|
|
|
## SYNOPSIS
|
|
|
|
|
|
|
|
npm prune [<name> [<name ...]]
|
2013-10-25 00:21:59 +08:00
|
|
|
npm prune [<name> [<name ...]] [--production]
|
2011-11-22 01:48:45 +08:00
|
|
|
|
|
|
|
## DESCRIPTION
|
|
|
|
|
|
|
|
This command removes "extraneous" packages. If a package name is
|
|
|
|
provided, then only packages matching one of the supplied names are
|
|
|
|
removed.
|
|
|
|
|
|
|
|
Extraneous packages are packages that are not listed on the parent
|
|
|
|
package's dependencies list.
|
|
|
|
|
2013-10-25 00:21:59 +08:00
|
|
|
If the `--production` flag is specified, this command will remove the
|
|
|
|
packages specified in your `devDependencies`.
|
|
|
|
|
2011-11-22 01:48:45 +08:00
|
|
|
## SEE ALSO
|
|
|
|
|
|
|
|
* npm-rm(1)
|
2013-07-25 04:23:44 +08:00
|
|
|
* npm-folders(5)
|
|
|
|
* npm-ls(1)
|