node/deps/npm/man/man1/npm-prune.1

35 lines
851 B
Groff
Raw Normal View History

.TH "NPM\-PRUNE" "1" "May 2017" "" ""
.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
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
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\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
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