diff options
Diffstat (limited to 'deps/npm/lib/install/mutate-into-logical-tree.js')
-rw-r--r-- | deps/npm/lib/install/mutate-into-logical-tree.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/deps/npm/lib/install/mutate-into-logical-tree.js b/deps/npm/lib/install/mutate-into-logical-tree.js index b2059da906..491f20913c 100644 --- a/deps/npm/lib/install/mutate-into-logical-tree.js +++ b/deps/npm/lib/install/mutate-into-logical-tree.js @@ -38,7 +38,7 @@ var mutateIntoLogicalTree = module.exports = function (tree) { Object.keys(flat).sort().forEach(function (flatname) { var node = flat[flatname] - if (!node.requiredBy.length) return + if (!(node.requiredBy && node.requiredBy.length)) return if (node.parent) { // If a node is a cycle that never reaches the root of the logical |