fix(setup): create target directory before copying pnpm
This commit is contained in:
1 file changed
+1
@@ -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