diff --git a/lib/storage.js b/lib/storage.js index 307ba6dfb..5a019b582 100644 --- a/lib/storage.js +++ b/lib/storage.js @@ -426,7 +426,7 @@ Storage.prototype.get_local = function(callback) { self.local.get_package(locals[i], function(err, info) { if (!err) { var latest = info['dist-tags'].latest; - packages.push(info.versions[latest]); + if (info.versions[latest]) packages.push(info.versions[latest]); } if (i >= locals.length - 1) {