@npmcli/arborist 8.0.4 → 8.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/arborist/rebuild.js +1 -1
- package/package.json +1 -1
package/lib/arborist/rebuild.js
CHANGED
|
@@ -8,6 +8,7 @@ const rpj = require('read-package-json-fast')
|
|
|
8
8
|
const binLinks = require('bin-links')
|
|
9
9
|
const runScript = require('@npmcli/run-script')
|
|
10
10
|
const { callLimit: promiseCallLimit } = require('promise-call-limit')
|
|
11
|
+
const promiseRetry = require('promise-retry')
|
|
11
12
|
const { resolve } = require('node:path')
|
|
12
13
|
const { isNodeGypPackage, defaultGypInstallScript } = require('@npmcli/node-gyp')
|
|
13
14
|
const { log, time } = require('proc-log')
|
|
@@ -384,7 +385,6 @@ module.exports = cls => class Builder extends cls {
|
|
|
384
385
|
const timeEnd = time.start(`build:link:${node.location}`)
|
|
385
386
|
|
|
386
387
|
// On Windows, antivirus/indexer can transiently lock files, causing EPERM/EACCES/EBUSY on the rename inside write-file-atomic (used by bin-links/fix-bin.js), so, retry with backoff.
|
|
387
|
-
const promiseRetry = require('promise-retry')
|
|
388
388
|
const p = promiseRetry((retry) => binLinks({
|
|
389
389
|
pkg: node.package,
|
|
390
390
|
path: node.path,
|