Skip to content
This repository was archived by the owner on Aug 9, 2021. It is now read-only.

Commit 5bbd5dd

Browse files
markrocketa7ul
authored andcommitted
Fix cache download rename not awaiting (#9)
1 parent 2fbf85b commit 5bbd5dd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

npm/install.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ const downloadFile = async (url, targetFilePath, options) => {
7070
const downloadArchiveFromGithub = async () => {
7171
const downloadedFilePath = path.resolve(cacheDir, "download.file");
7272
await downloadFile(downloadLink, downloadedFilePath, { stream: true });
73-
fs.rename(downloadedFilePath, cacheArchivePath);
73+
await fs.rename(downloadedFilePath, cacheArchivePath);
7474
};
7575

7676
const extractBinaries = async () => {

0 commit comments

Comments
 (0)