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