You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Force users to opt-in into the package managers they want to support.
As more and more package managers are added to Corepack, it's more and
more unlikely that our users will be interested in _all_ the package
managers Corepack supports, and it is unreasonable to expect Corepack
maintainers would be able to perform security audits.
Copy file name to clipboardexpand all lines: sources/commands/InstallGlobal.ts
+10-20
Original file line number
Diff line number
Diff line change
@@ -24,40 +24,30 @@ export class InstallGlobalCommand extends BaseCommand {
24
24
`Install the latest version of Yarn 1.x and make it globally available`,
25
25
`corepack install -g yarn@^1`,
26
26
],[
27
-
`Install the latest version of all available package managers, and make them globally available`,
28
-
`corepack install -g --all`,
27
+
`Install the latest version of pnpm, and make it globally available`,
28
+
`corepack install -g pnpm`,
29
29
]],
30
30
});
31
31
32
32
global=Option.Boolean(`-g,--global`,{
33
33
required: true,
34
34
});
35
35
36
-
all=Option.Boolean(`--all`,false,{
37
-
description: `If true, all available default package managers will be installed`,
38
-
});
39
-
40
36
cacheOnly=Option.Boolean(`--cache-only`,false,{
41
37
description: `If true, the package managers will only be cached, not set as new defaults`,
42
38
});
43
39
44
40
args=Option.Rest();
45
41
46
42
asyncexecute(){
47
-
if(this.args.length===0&&!this.all)
48
-
thrownewUsageError(`No package managers specified; use --all to install all available package managers, or specify one or more package managers to proceed`);
0 commit comments