@@ -991,6 +991,14 @@ For \`list\` this means the output will be based on the tree described by the
991991Output parseable results from commands that write to standard output. For
992992\`npm search\`, this will be tab-separated table format.
993993
994+ #### \`prefer-dedupe\`
995+
996+ * Default: false
997+ * Type: Boolean
998+
999+ Prefer to deduplicate packages if possible, rather than choosing a newer
1000+ version of a dependency.
1001+
9941002#### \`prefer-offline\`
9951003
9961004* Default: false
@@ -1802,6 +1810,7 @@ Array [
18021810 "package-lock-only",
18031811 "pack-destination",
18041812 "parseable",
1813+ "prefer-dedupe",
18051814 "prefer-offline",
18061815 "prefer-online",
18071816 "prefix",
@@ -1938,6 +1947,7 @@ Array [
19381947 "package-lock-only",
19391948 "pack-destination",
19401949 "parseable",
1950+ "prefer-dedupe",
19411951 "prefer-offline",
19421952 "prefer-online",
19431953 "preid",
@@ -2766,7 +2776,7 @@ Options:
27662776[-E|--save-exact] [-g|--global]
27672777[--install-strategy <hoisted|nested|shallow|linked>] [--legacy-bundling]
27682778[--global-style] [--omit <dev|optional|peer> [--omit <dev|optional|peer> ...]]
2769- [--strict-peer-deps] [--no-package-lock] [--foreground-scripts]
2779+ [--strict-peer-deps] [--prefer-dedupe] [-- no-package-lock] [--foreground-scripts]
27702780[--ignore-scripts] [--no-audit] [--no-bin-links] [--no-fund] [--dry-run]
27712781[-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
27722782[-ws|--workspaces] [--include-workspace-root] [--install-links]
@@ -2789,6 +2799,7 @@ aliases: add, i, in, ins, inst, insta, instal, isnt, isnta, isntal, isntall
27892799#### \`global-style\`
27902800#### \`omit\`
27912801#### \`strict-peer-deps\`
2802+ #### \`prefer-dedupe\`
27922803#### \`package-lock\`
27932804#### \`foreground-scripts\`
27942805#### \`ignore-scripts\`
@@ -2854,7 +2865,7 @@ Options:
28542865[-E|--save-exact] [-g|--global]
28552866[--install-strategy <hoisted|nested|shallow|linked>] [--legacy-bundling]
28562867[--global-style] [--omit <dev|optional|peer> [--omit <dev|optional|peer> ...]]
2857- [--strict-peer-deps] [--no-package-lock] [--foreground-scripts]
2868+ [--strict-peer-deps] [--prefer-dedupe] [-- no-package-lock] [--foreground-scripts]
28582869[--ignore-scripts] [--no-audit] [--no-bin-links] [--no-fund] [--dry-run]
28592870[-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
28602871[-ws|--workspaces] [--include-workspace-root] [--install-links]
@@ -2877,6 +2888,7 @@ alias: it
28772888#### \`global-style\`
28782889#### \`omit\`
28792890#### \`strict-peer-deps\`
2891+ #### \`prefer-dedupe\`
28802892#### \`package-lock\`
28812893#### \`foreground-scripts\`
28822894#### \`ignore-scripts\`
0 commit comments