diff --git a/src/npm.ts b/src/npm.ts index c355cbef..6ea6de5d 100644 --- a/src/npm.ts +++ b/src/npm.ts @@ -158,7 +158,7 @@ async function getYarnProductionDependencies(cwd: string, packagedDependencies?: const raw = await new Promise((c, e) => cp.exec( 'yarn list --prod --json', - { cwd, encoding: 'utf8', env: { ...process.env }, maxBuffer: 5000 * 1024 }, + { cwd, encoding: 'utf8', env: { DISABLE_V8_COMPILE_CACHE: "1", ...process.env }, maxBuffer: 5000 * 1024 }, (err, stdout) => (err ? e(err) : c(stdout)) ) );