diff --git a/src/providers/node/mod.rs b/src/providers/node/mod.rs index 1df5e2547..2ee0f8595 100644 --- a/src/providers/node/mod.rs +++ b/src/providers/node/mod.rs @@ -146,7 +146,7 @@ impl Provider for NodeProvider { // Install let corepack = NodeProvider::uses_corepack(app, env)?; let mut install = Phase::install(if corepack { - Some("npm install -g corepack && corepack enable".to_string()) + Some("npm install -g corepack@0.24.1 && corepack enable".to_string()) } else { NodeProvider::get_install_command(app) }); diff --git a/tests/snapshots/generate_plan_tests__node_yarn_berry.snap b/tests/snapshots/generate_plan_tests__node_yarn_berry.snap index 0a871cbfa..d38085293 100644 --- a/tests/snapshots/generate_plan_tests__node_yarn_berry.snap +++ b/tests/snapshots/generate_plan_tests__node_yarn_berry.snap @@ -30,7 +30,7 @@ expression: plan "setup" ], "cmds": [ - "npm install -g corepack && corepack enable", + "npm install -g corepack@0.24.1 && corepack enable", "yarn install --check-cache" ], "cacheDirectories": [