diff --git a/code/core/src/common/js-package-manager/JsPackageManagerFactory.ts b/code/core/src/common/js-package-manager/JsPackageManagerFactory.ts index 4b3c6184e59f..521bdecea268 100644 --- a/code/core/src/common/js-package-manager/JsPackageManagerFactory.ts +++ b/code/core/src/common/js-package-manager/JsPackageManagerFactory.ts @@ -129,6 +129,7 @@ function hasNPM(cwd?: string) { cwd, shell: true, env: { + ...process.env, COREPACK_ENABLE_STRICT: '0', }, }); @@ -140,6 +141,7 @@ function hasPNPM(cwd?: string) { cwd, shell: true, env: { + ...process.env, COREPACK_ENABLE_STRICT: '0', }, }); @@ -151,6 +153,7 @@ function getYarnVersion(cwd?: string): 1 | 2 | undefined { cwd, shell: true, env: { + ...process.env, COREPACK_ENABLE_STRICT: '0', }, });