Skip to content

Commit ebd7625

Browse files
aboseclaude
andcommitted
fix: allow npm install to succeed when node binary was previously extracted
The adm-zip extractEntryTo call in downloadNodeBinary.js did not pass the overwrite flag, causing postinstall to fail with "Target file already exists" on repeat runs. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent a47bd3f commit ebd7625

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src-build/downloadNodeBinary.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ function unzipFile(zipFilePath, extractPath) {
187187
}
188188

189189
if (!zipEntry.isDirectory) {
190-
zip.extractEntryTo(zipEntry.entryName, extractPath);
190+
zip.extractEntryTo(zipEntry.entryName, extractPath, /*maintainEntryPath*/true, /*overwrite*/true);
191191
}
192192
});
193193

0 commit comments

Comments
 (0)