1 npm-prune(1) -- Remove extraneous packages
2 ==========================================
6 npm prune [<name> [<name ...]]
7 npm prune [<name> [<name ...]] [--production]
11 This command removes "extraneous" packages. If a package name is
12 provided, then only packages matching one of the supplied names are
15 Extraneous packages are packages that are not listed on the parent
16 package's dependencies list.
18 If the `--production` flag is specified or the `NODE_ENV` environment
19 variable is set to `production`, this command will remove the packages
20 specified in your `devDependencies`. Setting `--production=false` will
21 negate `NODE_ENV` being set to `production`.