1NPM-PRUNE(1)                                                      NPM-PRUNE(1)
2
3
4

NAME

6       npm-prune - Remove extraneous packages
7

SYNOPSIS

9         npm prune [[<@scope>/]<pkg>...] [--production] [--dry-run] [--json]
10

DESCRIPTION

12       This  command removes "extraneous" packages.  If a package name is pro‐
13       vided, then only packages  matching  one  of  the  supplied  names  are
14       removed.
15
16       Extraneous  packages  are  packages  that  are not listed on the parent
17       package's dependencies list.
18
19       If the --production flag is specified or the NODE_ENV environment vari‐
20       able is set to production, this command will remove the packages speci‐
21       fied in  your  devDependencies.  Setting  --no-production  will  negate
22       NODE_ENV being set to production.
23
24       If the --dry-run flag is used then no changes will actually be made.
25
26       If  the  --json  flag is used then the changes npm prune made (or would
27       have made with --dry-run) are printed as a JSON object.
28
29       In normal operation with package-locks enabled, extraneous modules  are
30       pruned  automatically  when  modules are installed and you'll only need
31       this command with the --production flag.
32
33       If you've disabled package-locks then extraneous modules  will  not  be
34       removed and it's up to you to run npm prune from time-to-time to remove
35       them.
36

SEE ALSO

38       · npm help uninstall
39
40       · npm help 5 folders
41
42       · npm help ls
43
44
45
46
47
48                                  April 2019                      NPM-PRUNE(1)
Impressum