Permalink
Browse files

Fix #2336 Handle empty dependencies list in shrinkwrap

  • Loading branch information...
1 parent 50d9bd8 commit 2738eb8d4255e64f92432871562bc5f350f92e1c gitamazon@maxired.fr committed with isaacs Apr 8, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/install.js
View
2 lib/install.js
@@ -211,7 +211,7 @@ function readDependencies (context, where, opts, cb) {
rv[key] = data[key]
})
rv.dependencies = {}
- Object.keys(newwrap.dependencies).forEach(function (key) {
+ Object.keys(newwrap.dependencies || {}).forEach(function (key) {
var w = newwrap.dependencies[key]
rv.dependencies[key] = w.from || w.version
})

0 comments on commit 2738eb8

Please sign in to comment.