diff --git a/lib/outdated.js b/lib/outdated.js index 9ad9aff6dcd..7a074be9896 100644 --- a/lib/outdated.js +++ b/lib/outdated.js @@ -111,12 +111,8 @@ function outdated (args, silent, cb) { } output(table(outTable, tableOpts)) } - var msg = [ - 'The outdated dependencies were found. Please make sure', - 'the versions in node_module, or look over package.json', - 'to use the most suitable semver range.' - ].join('\n') - cb(msg, list.map(function (item) { return [item[0].parent.path].concat(item.slice(1, 7)) })) + process.exitCode = list.length + cb(null, list.map(function (item) { return [item[0].parent.path].concat(item.slice(1, 7)) })) }) })) }