| 123456789101112131415161718192021222324252627282930313233343536373839404142434445 | .TH "NPM\-PRUNE" "1" "August 2021" "" "".SH "NAME"\fBnpm-prune\fR \- Remove extraneous packages.SS Synopsis.P.RS 2.nfnpm prune [[<@scope>/]<pkg>\.\.\.] [\-\-production] [\-\-dry\-run] [\-\-json].fi.RE.SS Description.PThis command removes "extraneous" packages\.  If a package name isprovided, then only packages matching one of the supplied names areremoved\..PExtraneous packages are packages that are not listed on the parentpackage's dependencies list\..PIf the \fB\-\-production\fP flag is specified or the \fBNODE_ENV\fP environmentvariable is set to \fBproduction\fP, this command will remove the packagesspecified in your \fBdevDependencies\fP\|\. Setting \fB\-\-no\-production\fP willnegate \fBNODE_ENV\fP being set to \fBproduction\fP\|\..PIf the \fB\-\-dry\-run\fP flag is used then no changes will actually be made\..PIf the \fB\-\-json\fP flag is used then the changes \fBnpm prune\fP made (or wouldhave made with \fB\-\-dry\-run\fP) are printed as a JSON object\..PIn normal operation with package\-locks enabled, extraneous modules arepruned automatically when modules are installed and you'll only needthis command with the \fB\-\-production\fP flag\..PIf you've disabled package\-locks then extraneous modules will not be removedand it's up to you to run \fBnpm prune\fP from time\-to\-time to remove them\..SS See Also.RS 0.IP \(bu 2npm help uninstall.IP \(bu 2npm help folders.IP \(bu 2npm help ls.RE
 |