mirror of
https://github.com/pnpm/pnpm.git
synced 2026-04-27 18:46:18 -04:00
fix: set COREPACK_ENABLE_STRICT=0 in runNpm (#7747)
* fix: set `COREPACK_ENABLE_STRICT=0` in `runNpm` * docs: add changesets * fix: compile * Update exec/run-npm/src/index.ts --------- Co-authored-by: Zoltan Kochan <z@kochan.io>
This commit is contained in:
6
.changeset/thick-countries-deny.md
Normal file
6
.changeset/thick-countries-deny.md
Normal file
@@ -0,0 +1,6 @@
|
||||
---
|
||||
"@pnpm/run-npm": patch
|
||||
"pnpm": patch
|
||||
---
|
||||
|
||||
The npm CLI executed from pnpm should not use Corepack [#7747](https://github.com/pnpm/pnpm/pull/7747).
|
||||
@@ -14,7 +14,7 @@ export function runNpm (npmPath: string | undefined, args: string[], options?: R
|
||||
cwd: options?.cwd ?? process.cwd(),
|
||||
stdio: 'inherit',
|
||||
userAgent: undefined,
|
||||
env: options?.env ?? {},
|
||||
env: { ...options?.env, COREPACK_ENABLE_STRICT: '0' },
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user