Skip to content

Commit

Permalink
Fix Tracker "idealTree:inflate:" already exists
Browse files Browse the repository at this point in the history
Fixes https://github.com/npm/arborist/issues/330 as per solution described in comments.
  • Loading branch information
kirtangajjar committed Jan 19, 2022
1 parent a703bbd commit 52be74a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/arborist/build-ideal-tree.js
Original file line number Diff line number Diff line change
Expand Up @@ -738,7 +738,8 @@ This is a one-time fix-up, please be patient...
: version || `file:${node.path}`
const spec = npa.resolve(name, id, dirname(path))
const sloc = location.substr('node_modules/'.length)
const t = `idealTree:inflate:${sloc}`
const rand = Math.random()
const t = `idealTree:inflate:${sloc}:${rand}`
this.addTracker(t)
await pacote.manifest(spec, {
...this.options,
Expand Down

0 comments on commit 52be74a

Please sign in to comment.