2017-05-10 05:46:02 +08:00
|
|
|
.TH "NPM\-PRUNE" "1" "May 2017" "" ""
|
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
|
2015-10-10 14:13:57 +08:00
|
|
|
npm prune [[<@scope>/]<pkg>\.\.\.] [\-\-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
|
2015-07-25 06:09:52 +08:00
|
|
|
If the \fB\-\-production\fP flag is specified or the \fBNODE_ENV\fP environment
|
|
|
|
variable is set to \fBproduction\fP, this command will remove the packages
|
|
|
|
specified in your \fBdevDependencies\fP\|\. Setting \fB\-\-production=false\fP will
|
|
|
|
negate \fBNODE_ENV\fP being set to \fBproduction\fP\|\.
|
2014-09-25 05:41:07 +08:00
|
|
|
.SH SEE ALSO
|
|
|
|
.RS 0
|
|
|
|
.IP \(bu 2
|
2016-01-29 10:11:35 +08:00
|
|
|
npm help uninstall
|
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
|
|
|
|