From 274844a07f17276549084029d10d52a543a97c07 Mon Sep 17 00:00:00 2001 From: barisusakli Date: Wed, 19 Aug 2015 18:28:31 -0400 Subject: [PATCH] check _resolved --- src/meta/dependencies.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/meta/dependencies.js b/src/meta/dependencies.js index 8baa5b5fdf..bd08191c8f 100644 --- a/src/meta/dependencies.js +++ b/src/meta/dependencies.js @@ -29,7 +29,7 @@ module.exports = function(Meta) { var pkgData = JSON.parse(pkgData), ok = semver.satisfies(pkgData.version, pkg.dependencies[module]); - if (ok || pkgData._resolved.indexOf('//github.com') != -1) { + if (ok || (pkgData._resolved && pkgData._resolved.indexOf('//github.com') !== -1)) { next(true); } else { process.stdout.write('[' + 'outdated'.yellow + '] ' + module.bold + ' v' + pkgData.version + ', requires ' + pkg.dependencies[module] + '\n')