diff --git a/packages/plugin-commands-setup/src/setup.ts b/packages/plugin-commands-setup/src/setup.ts index 723de3e808..85f802cd69 100644 --- a/packages/plugin-commands-setup/src/setup.ts +++ b/packages/plugin-commands-setup/src/setup.ts @@ -40,6 +40,7 @@ function moveCli (currentLocation: string, targetDir: string) { message: `Moving pnpm CLI from ${currentLocation} to ${newExecPath}`, prefix: process.cwd(), }) + fs.mkdirSync(targetDir, { recursive: true }) try { fs.renameSync(currentLocation, newExecPath) } catch (err) {