diff --git a/packages/app/src/cli/services/function/binaries.ts b/packages/app/src/cli/services/function/binaries.ts index 034d28e18f3..153e143f427 100644 --- a/packages/app/src/cli/services/function/binaries.ts +++ b/packages/app/src/cli/services/function/binaries.ts @@ -164,7 +164,7 @@ export async function downloadBinary(bin: DownloadableBinary) { const outputStream = createFileWriteStream(tmpFile) await bin.processResponse(responseStream, outputStream) await chmod(tmpFile, 0o775) - await moveFile(tmpFile, bin.path) + await moveFile(tmpFile, bin.path, {overwrite: true}) }) }, async () => {},