fix(setup): create target directory before copying pnpm

This commit is contained in:
Zoltan Kochan
2021-08-18 02:45:29 +03:00
parent 8d038f8f1c
commit f29314b3b2

View File

@@ -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) {