diff --git a/lib/util/exec/env.ts b/lib/util/exec/env.ts index 0c9c7ef23f38a1..cf53afd966df60 100644 --- a/lib/util/exec/env.ts +++ b/lib/util/exec/env.ts @@ -24,6 +24,17 @@ const basicEnvVars = [ 'PROGRAMFILES(X86)', 'APPDATA', 'LOCALAPPDATA', + // Corepack: https://github.com/nodejs/corepack + 'COREPACK_DEFAULT_TO_LATEST', + 'COREPACK_ENABLE_NETWORK', + 'COREPACK_ENABLE_STRICT', + 'COREPACK_ENABLE_PROJECT_SPEC', + 'COREPACK_HOME', + 'COREPACK_NPM_REGISTRY', + 'COREPACK_NPM_TOKEN', + 'COREPACK_NPM_USERNAME', + 'COREPACK_NPM_PASSWORD', + 'COREPACK_ROOT', ]; export function getChildProcessEnv(