1 .TH "NPM\-PRUNE" "1" "October 2016" "" ""
3 \fBnpm-prune\fR \- Remove extraneous packages
8 npm prune [<name> [<name \.\.\.]]
9 npm prune [<name> [<name \.\.\.]] [\-\-production]
14 This command removes "extraneous" packages\. If a package name is
15 provided, then only packages matching one of the supplied names are
18 Extraneous packages are packages that are not listed on the parent
19 package's dependencies list\.
21 If the \fB\-\-production\fP flag is specified or the \fBNODE_ENV\fP environment
22 variable is set to \fBproduction\fP, this command will remove the packages
23 specified in your \fBdevDependencies\fP\|\. Setting \fB\-\-production=false\fP will
24 negate \fBNODE_ENV\fP being set to \fBproduction\fP\|\.