@@ -1034,18 +1034,6 @@ folder instead of the current working directory. See
1034
1034
* bin files are linked to \`{prefix}/bin\`
1035
1035
* man pages are linked to \`{prefix}/share/man\`
1036
1036
1037
- #### \`global-style\`
1038
-
1039
- * Default: false
1040
- * Type: Boolean
1041
-
1042
- Causes npm to install the package into your local \`node_modules\` folder with
1043
- the same layout it uses with the global \`node_modules\` folder. Only your
1044
- direct dependencies will show in \`node_modules\` and everything they depend
1045
- on will be flattened in their \`node_modules\` folders. This obviously will
1046
- eliminate some deduping. If used with \`legacy-bundling\`, \`legacy-bundling\`
1047
- will be preferred.
1048
-
1049
1037
#### \`globalconfig\`
1050
1038
1051
1039
* Default: The global --prefix setting plus 'etc/npmrc'. For example,
@@ -1188,6 +1176,18 @@ When set file: protocol dependencies will be packed and installed as regular
1188
1176
dependencies instead of creating a symlink. This option has no effect on
1189
1177
workspaces.
1190
1178
1179
+ #### \`install-strategy\`
1180
+
1181
+ * Default: "hoisted"
1182
+ * Type: "hoisted", "nested", or "shallow"
1183
+
1184
+ Sets the strategy for installing packages in node_modules. hoisted
1185
+ (default): Install non-duplicated in top-level, and duplicated as necessary
1186
+ within directory structure. nested: (formerly --legacy-bundling) install in
1187
+ place, no hoisting. shallow (formerly --global-style) only install direct
1188
+ deps at top-level. linked: (coming soon) install in node_modules/.store,
1189
+ link in place, unhoisted.
1190
+
1191
1191
#### \`json\`
1192
1192
1193
1193
* Default: false
@@ -1215,16 +1215,6 @@ key="-----BEGIN PRIVATE KEY-----\\nXXXX\\nXXXX\\n-----END PRIVATE KEY-----"
1215
1215
It is _not_ the path to a key file, though you can set a registry-scoped
1216
1216
"keyfile" path like "//other-registry.tld/:keyfile=/path/to/key.pem".
1217
1217
1218
- #### \`legacy-bundling\`
1219
-
1220
- * Default: false
1221
- * Type: Boolean
1222
-
1223
- Causes npm to install the package such that versions of npm prior to 1.4,
1224
- such as the one included with node 0.8, can install the package. This
1225
- eliminates all automatic deduping. If used with \`global-style\` this option
1226
- will be preferred.
1227
-
1228
1218
#### \`legacy-peer-deps\`
1229
1219
1230
1220
* Default: false
@@ -1483,8 +1473,8 @@ look for updates immediately even for fresh package data.
1483
1473
#### \`prefix\`
1484
1474
1485
1475
* Default: In global mode, the folder where the node executable is installed.
1486
- In local mode , the nearest parent folder containing either a package.json
1487
- file or a node_modules folder.
1476
+ Otherwise , the nearest parent folder containing either a package.json file
1477
+ or a node_modules folder.
1488
1478
* Type: Path
1489
1479
1490
1480
The location to install global items. If set on the command line, then it
@@ -2139,7 +2129,6 @@ Array [
2139
2129
"git",
2140
2130
"git-tag-version",
2141
2131
"global",
2142
- "global-style",
2143
2132
"globalconfig",
2144
2133
"heading",
2145
2134
"https-proxy",
@@ -2161,9 +2150,9 @@ Array [
2161
2150
"init.module",
2162
2151
"init.version",
2163
2152
"install-links",
2153
+ "install-strategy",
2164
2154
"json",
2165
2155
"key",
2166
- "legacy-bundling",
2167
2156
"legacy-peer-deps",
2168
2157
"link",
2169
2158
"local-address",
@@ -2290,7 +2279,6 @@ Array [
2290
2279
"git",
2291
2280
"git-tag-version",
2292
2281
"global",
2293
- "global-style",
2294
2282
"globalconfig",
2295
2283
"heading",
2296
2284
"https-proxy",
@@ -2300,9 +2288,9 @@ Array [
2300
2288
"include-staged",
2301
2289
"include-workspace-root",
2302
2290
"install-links",
2291
+ "install-strategy",
2303
2292
"json",
2304
2293
"key",
2305
- "legacy-bundling",
2306
2294
"legacy-peer-deps",
2307
2295
"local-address",
2308
2296
"location",
@@ -2589,7 +2577,7 @@ npm ci
2589
2577
2590
2578
Options:
2591
2579
[-S|--save|--no-save|--save-prod|--save-dev|--save-optional|--save-peer|--save-bundle]
2592
- [-E|--save-exact] [-g|--global] [--global-style] [--legacy-bundling ]
2580
+ [-E|--save-exact] [-g|--global] [--install-strategy <hoisted|nested|shallow> ]
2593
2581
[--omit <dev|optional|peer> [--omit <dev|optional|peer> ...]]
2594
2582
[--strict-peer-deps] [--no-package-lock] [--foreground-scripts]
2595
2583
[--ignore-scripts] [--no-audit] [--no-bin-links] [--no-fund] [--dry-run]
@@ -2609,8 +2597,7 @@ aliases: clean-install, ic, install-clean, isntall-clean
2609
2597
#### \`save\`
2610
2598
#### \`save-exact\`
2611
2599
#### \`global\`
2612
- #### \`global-style\`
2613
- #### \`legacy-bundling\`
2600
+ #### \`install-strategy\`
2614
2601
#### \`omit\`
2615
2602
#### \`strict-peer-deps\`
2616
2603
#### \`package-lock\`
@@ -2685,9 +2672,9 @@ Usage:
2685
2672
npm dedupe
2686
2673
2687
2674
Options:
2688
- [--global-style] [--legacy-bundling ] [--strict-peer-deps] [--no-package-lock ]
2689
- [--omit <dev|optional|peer> [--omit <dev|optional|peer> ...]] [--ignore-scripts ]
2690
- [--no-audit] [--no-bin-links] [--no-fund] [--dry-run]
2675
+ [--install-strategy <hoisted|nested|shallow> ] [--strict-peer-deps]
2676
+ [--no-package-lock] [-- omit <dev|optional|peer> [--omit <dev|optional|peer> ...]]
2677
+ [--ignore-scripts] [-- no-audit] [--no-bin-links] [--no-fund] [--dry-run]
2691
2678
[-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
2692
2679
[-ws|--workspaces] [--include-workspace-root] [--no-install-links]
2693
2680
@@ -2701,8 +2688,7 @@ npm dedupe
2701
2688
alias: ddp
2702
2689
\`\`\`
2703
2690
2704
- #### \`global-style\`
2705
- #### \`legacy-bundling\`
2691
+ #### \`install-strategy\`
2706
2692
#### \`strict-peer-deps\`
2707
2693
#### \`package-lock\`
2708
2694
#### \`omit\`
@@ -2946,9 +2932,9 @@ Usage:
2946
2932
npm find-dupes
2947
2933
2948
2934
Options:
2949
- [--global-style] [--legacy-bundling ] [--strict-peer-deps] [--no-package-lock ]
2950
- [--omit <dev|optional|peer> [--omit <dev|optional|peer> ...]] [--ignore-scripts ]
2951
- [--no-audit] [--no-bin-links] [--no-fund]
2935
+ [--install-strategy <hoisted|nested|shallow> ] [--strict-peer-deps]
2936
+ [--no-package-lock] [-- omit <dev|optional|peer> [--omit <dev|optional|peer> ...]]
2937
+ [--ignore-scripts] [-- no-audit] [--no-bin-links] [--no-fund]
2952
2938
[-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
2953
2939
[-ws|--workspaces] [--include-workspace-root] [--no-install-links]
2954
2940
@@ -2958,8 +2944,7 @@ Run "npm help find-dupes" for more info
2958
2944
npm find-dupes
2959
2945
\`\`\`
2960
2946
2961
- #### \`global-style\`
2962
- #### \`legacy-bundling\`
2947
+ #### \`install-strategy\`
2963
2948
#### \`strict-peer-deps\`
2964
2949
#### \`package-lock\`
2965
2950
#### \`omit\`
@@ -3117,7 +3102,7 @@ npm install [<package-spec> ...]
3117
3102
3118
3103
Options:
3119
3104
[-S|--save|--no-save|--save-prod|--save-dev|--save-optional|--save-peer|--save-bundle]
3120
- [-E|--save-exact] [-g|--global] [--global-style] [--legacy-bundling ]
3105
+ [-E|--save-exact] [-g|--global] [--install-strategy <hoisted|nested|shallow> ]
3121
3106
[--omit <dev|optional|peer> [--omit <dev|optional|peer> ...]]
3122
3107
[--strict-peer-deps] [--no-package-lock] [--foreground-scripts]
3123
3108
[--ignore-scripts] [--no-audit] [--no-bin-links] [--no-fund] [--dry-run]
@@ -3137,8 +3122,7 @@ aliases: add, i, in, ins, inst, insta, instal, isnt, isnta, isntal, isntall
3137
3122
#### \`save\`
3138
3123
#### \`save-exact\`
3139
3124
#### \`global\`
3140
- #### \`global-style\`
3141
- #### \`legacy-bundling\`
3125
+ #### \`install-strategy\`
3142
3126
#### \`omit\`
3143
3127
#### \`strict-peer-deps\`
3144
3128
#### \`package-lock\`
@@ -3162,7 +3146,7 @@ npm install-ci-test
3162
3146
3163
3147
Options:
3164
3148
[-S|--save|--no-save|--save-prod|--save-dev|--save-optional|--save-peer|--save-bundle]
3165
- [-E|--save-exact] [-g|--global] [--global-style] [--legacy-bundling ]
3149
+ [-E|--save-exact] [-g|--global] [--install-strategy <hoisted|nested|shallow> ]
3166
3150
[--omit <dev|optional|peer> [--omit <dev|optional|peer> ...]]
3167
3151
[--strict-peer-deps] [--no-package-lock] [--foreground-scripts]
3168
3152
[--ignore-scripts] [--no-audit] [--no-bin-links] [--no-fund] [--dry-run]
@@ -3182,8 +3166,7 @@ alias: cit
3182
3166
#### \`save\`
3183
3167
#### \`save-exact\`
3184
3168
#### \`global\`
3185
- #### \`global-style\`
3186
- #### \`legacy-bundling\`
3169
+ #### \`install-strategy\`
3187
3170
#### \`omit\`
3188
3171
#### \`strict-peer-deps\`
3189
3172
#### \`package-lock\`
@@ -3207,7 +3190,7 @@ npm install-test [<package-spec> ...]
3207
3190
3208
3191
Options:
3209
3192
[-S|--save|--no-save|--save-prod|--save-dev|--save-optional|--save-peer|--save-bundle]
3210
- [-E|--save-exact] [-g|--global] [--global-style] [--legacy-bundling ]
3193
+ [-E|--save-exact] [-g|--global] [--install-strategy <hoisted|nested|shallow> ]
3211
3194
[--omit <dev|optional|peer> [--omit <dev|optional|peer> ...]]
3212
3195
[--strict-peer-deps] [--no-package-lock] [--foreground-scripts]
3213
3196
[--ignore-scripts] [--no-audit] [--no-bin-links] [--no-fund] [--dry-run]
@@ -3227,8 +3210,7 @@ alias: it
3227
3210
#### \`save\`
3228
3211
#### \`save-exact\`
3229
3212
#### \`global\`
3230
- #### \`global-style\`
3231
- #### \`legacy-bundling\`
3213
+ #### \`install-strategy\`
3232
3214
#### \`omit\`
3233
3215
#### \`strict-peer-deps\`
3234
3216
#### \`package-lock\`
@@ -3252,7 +3234,7 @@ npm link [<package-spec>]
3252
3234
3253
3235
Options:
3254
3236
[-S|--save|--no-save|--save-prod|--save-dev|--save-optional|--save-peer|--save-bundle]
3255
- [-E|--save-exact] [-g|--global] [--global-style] [--legacy-bundling ]
3237
+ [-E|--save-exact] [-g|--global] [--install-strategy <hoisted|nested|shallow> ]
3256
3238
[--strict-peer-deps] [--no-package-lock]
3257
3239
[--omit <dev|optional|peer> [--omit <dev|optional|peer> ...]] [--ignore-scripts]
3258
3240
[--no-audit] [--no-bin-links] [--no-fund] [--dry-run]
@@ -3272,8 +3254,7 @@ alias: ln
3272
3254
#### \`save\`
3273
3255
#### \`save-exact\`
3274
3256
#### \`global\`
3275
- #### \`global-style\`
3276
- #### \`legacy-bundling\`
3257
+ #### \`install-strategy\`
3277
3258
#### \`strict-peer-deps\`
3278
3259
#### \`package-lock\`
3279
3260
#### \`omit\`
@@ -4124,7 +4105,7 @@ npm update [<pkg>...]
4124
4105
4125
4106
Options:
4126
4107
[-S|--save|--no-save|--save-prod|--save-dev|--save-optional|--save-peer|--save-bundle]
4127
- [-g|--global] [--global-style] [--legacy-bundling ]
4108
+ [-g|--global] [--install-strategy <hoisted|nested|shallow> ]
4128
4109
[--omit <dev|optional|peer> [--omit <dev|optional|peer> ...]]
4129
4110
[--strict-peer-deps] [--no-package-lock] [--foreground-scripts]
4130
4111
[--ignore-scripts] [--no-audit] [--no-bin-links] [--no-fund] [--dry-run]
@@ -4143,8 +4124,7 @@ aliases: up, upgrade, udpate
4143
4124
4144
4125
#### \`save\`
4145
4126
#### \`global\`
4146
- #### \`global-style\`
4147
- #### \`legacy-bundling\`
4127
+ #### \`install-strategy\`
4148
4128
#### \`omit\`
4149
4129
#### \`strict-peer-deps\`
4150
4130
#### \`package-lock\`
0 commit comments