mirror of
https://github.com/pnpm/pnpm.git
synced 2026-05-11 17:42:43 -04:00
fix(setup): create target directory before copying pnpm
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user