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')