Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ async function build (gyp, argv) {
await new Promise((resolve, reject) => proc.on('exit', async (code, signal) => {
if (buildBinsDir) {
// Clean up the build-time dependency symlinks:
await fs.rm(buildBinsDir, { recursive: true })
await fs.rm(buildBinsDir, { recursive: true, maxRetries: 3 })
}

if (code !== 0) {
Expand Down
2 changes: 1 addition & 1 deletion lib/clean.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ async function clean (gyp, argv) {
const buildDir = 'build'

log.verbose('clean', 'removing "%s" directory', buildDir)
await fs.rm(buildDir, { recursive: true, force: true })
await fs.rm(buildDir, { recursive: true, force: true, maxRetries: 3 })
}

module.exports = clean
Expand Down
2 changes: 1 addition & 1 deletion lib/install.js
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ async function install (gyp, argv) {
if (tarExtractDir !== devDir) {
try {
// try to cleanup temp dir
await fs.rm(tarExtractDir, { recursive: true })
await fs.rm(tarExtractDir, { recursive: true, maxRetries: 3 })
} catch {
log.warn('failed to clean up temp tarball extract directory')
}
Expand Down
2 changes: 1 addition & 1 deletion lib/remove.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ async function remove (gyp, argv) {
throw err
}

await fs.rm(versionPath, { recursive: true, force: true })
await fs.rm(versionPath, { recursive: true, force: true, maxRetries: 3 })
}

module.exports = remove
Expand Down