diff --git a/src/spawn.ts b/src/spawn.ts index aa1e3da..e8d84e7 100644 --- a/src/spawn.ts +++ b/src/spawn.ts @@ -11,6 +11,9 @@ export function runCorepack( argv: string[], options: RunCommandOptions = {} ): Promise { + if (pm === "npm") { + return runCommand("npm", argv, options); + } return runCommand("corepack", [pm, ...argv], options); }