]> gerrit.simantics Code Review - simantics/district.git/blob - org.simantics.maps.server/node/node-v4.8.0-win-x64/node_modules/npm/doc/cli/npm-dedupe.md
Adding integrated tile server
[simantics/district.git] / org.simantics.maps.server / node / node-v4.8.0-win-x64 / node_modules / npm / doc / cli / npm-dedupe.md
1 npm-dedupe(1) -- Reduce duplication
2 ===================================
3
4 ## SYNOPSIS
5
6     npm dedupe [package names...]
7     npm ddp [package names...]
8
9     aliases: find-dupes, ddp
10
11 ## DESCRIPTION
12
13 Searches the local package tree and attempts to simplify the overall
14 structure by moving dependencies further up the tree, where they can
15 be more effectively shared by multiple dependent packages.
16
17 For example, consider this dependency graph:
18
19     a
20     +-- b <-- depends on c@1.0.x
21     |   `-- c@1.0.3
22     `-- d <-- depends on c@~1.0.9
23         `-- c@1.0.10
24
25 In this case, `npm-dedupe(1)` will transform the tree to:
26
27     a
28     +-- b
29     +-- d
30     `-- c@1.0.10
31
32 Because of the hierarchical nature of node's module lookup, b and d
33 will both get their dependency met by the single c package at the root
34 level of the tree.
35
36 If a suitable version exists at the target location in the tree
37 already, then it will be left untouched, but the other duplicates will
38 be deleted.
39
40 If no suitable version can be found, then a warning is printed, and
41 nothing is done.
42
43 If any arguments are supplied, then they are filters, and only the
44 named packages will be touched.
45
46 Note that this operation transforms the dependency tree, and may
47 result in packages getting updated versions, perhaps from the npm
48 registry.
49
50 This feature is experimental, and may change in future versions.
51
52 The `--tag` argument will apply to all of the affected dependencies. If a
53 tag with the given name exists, the tagged version is preferred over newer
54 versions.
55
56 ## SEE ALSO
57
58 * npm-ls(1)
59 * npm-update(1)
60 * npm-install(1)