Skip to content

Commit

Permalink
Fix removal of q
Browse files Browse the repository at this point in the history
  • Loading branch information
nknapp committed May 21, 2017
1 parent 61204e1 commit 4ff79e3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/check-engines.js
Expand Up @@ -9,13 +9,13 @@ var semver = require('semver')

module.exports = function () {
return exec('npm', ['--version'])
.spread(function (stdout, stderr) {
if (semver.lt(stdout.trim(), '2.13.0')) {
.then(function (stdio) {
if (semver.lt(stdio[0], '2.13.0')) {
throw new Error('npm<2.13.0 will not execute the `version`-script in your package.json.\n' +
'Please upgrade to at least 2.13.0.')
} else {
// eslint-disable-next-line no-console
console.log('npm@' + stdout.trim() + ': OK')
console.log('npm@' + stdio.trim() + ': OK')
}
})
}

0 comments on commit 4ff79e3

Please sign in to comment.