diff options
author | Victor Travieso <victor@grabcad.com> | 2016-05-20 16:24:56 +0300 |
---|---|---|
committer | Rebecca Turner <me@re-becca.org> | 2017-08-13 02:16:36 +0300 |
commit | 55ac2fca81bf08338302dc7dc2070494e71add5c (patch) | |
tree | 329bb9697b0b2bab01780eef8cdcd384f2d52b96 /lib | |
parent | 67fb1a17a68bf245156ea45742ff88345da9f612 (diff) |
actions: Recursion guard when marking packages as failed
PR-URL: https://github.com/npm/npm/pull/12784
Credit: @vtravieso
Reviewed-By: @iarna
Diffstat (limited to 'lib')
-rw-r--r-- | lib/install/actions.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/install/actions.js b/lib/install/actions.js index 028d93237..9f0dcfa5d 100644 --- a/lib/install/actions.js +++ b/lib/install/actions.js @@ -80,6 +80,7 @@ function runAction (action, staging, pkg, log) { } function markAsFailed (pkg) { + if (pkg.failed) return pkg.failed = true pkg.requires.forEach((req) => { req.requiredBy = req.requiredBy.filter((reqReqBy) => { |