2015-05-01 16:27:33 +08:00
|
|
|
.TH "NPM\-PRUNE" "1" "May 2015" "" ""
|
2011-11-27 01:21:03 +08:00
|
|
|
.SH "NAME"
|
2014-09-25 05:41:07 +08:00
|
|
|
\fBnpm-prune\fR \- Remove extraneous packages
|
|
|
|
.SH SYNOPSIS
|
|
|
|
.P
|
|
|
|
.RS 2
|
2014-11-05 07:08:12 +08:00
|
|
|
.nf
|
2011-11-27 01:21:03 +08:00
|
|
|
npm prune [<name> [<name \.\.\.]]
|
2013-10-25 00:21:59 +08:00
|
|
|
npm prune [<name> [<name \.\.\.]] [\-\-production]
|
2014-11-05 07:08:12 +08:00
|
|
|
.fi
|
2014-09-25 05:41:07 +08:00
|
|
|
.RE
|
|
|
|
.SH DESCRIPTION
|
|
|
|
.P
|
2011-11-27 01:21:03 +08:00
|
|
|
This command removes "extraneous" packages\. If a package name is
|
|
|
|
provided, then only packages matching one of the supplied names are
|
|
|
|
removed\.
|
|
|
|
.P
|
|
|
|
Extraneous packages are packages that are not listed on the parent
|
2014-09-25 05:41:07 +08:00
|
|
|
package's dependencies list\.
|
2013-10-25 00:21:59 +08:00
|
|
|
.P
|
|
|
|
If the \fB\-\-production\fR flag is specified, this command will remove the
|
|
|
|
packages specified in your \fBdevDependencies\fR\|\.
|
2014-09-25 05:41:07 +08:00
|
|
|
.SH SEE ALSO
|
|
|
|
.RS 0
|
|
|
|
.IP \(bu 2
|
2011-11-27 01:21:03 +08:00
|
|
|
npm help rm
|
2014-09-25 05:41:07 +08:00
|
|
|
.IP \(bu 2
|
2014-09-17 06:38:50 +08:00
|
|
|
npm help 5 folders
|
2014-09-25 05:41:07 +08:00
|
|
|
.IP \(bu 2
|
2013-07-25 04:23:44 +08:00
|
|
|
npm help ls
|
2014-09-25 05:41:07 +08:00
|
|
|
|
|
|
|
.RE
|
2011-11-27 01:21:03 +08:00
|
|
|
|