diff --git a/lib/cli.js b/lib/cli.js index f261dae121b9f..7b87b94452ead 100644 --- a/lib/cli.js +++ b/lib/cli.js @@ -13,7 +13,7 @@ module.exports = async process => { // checks as early as possible so the user gets the error message. const semver = require('semver') const supported = require('../package.json').engines.node - const knownBroken = '<6.2.0 || 9 <9.3.0' + const knownBroken = '<12.5.0' const nodejsVersion = process.version.replace(/-.*$/, '') /* eslint-disable no-console */ diff --git a/test/lib/cli.js b/test/lib/cli.js index 49af62e8f2164..65ac88f45e3d9 100644 --- a/test/lib/cli.js +++ b/test/lib/cli.js @@ -201,7 +201,7 @@ t.test('unsupported node version', async t => { }) await cli(process) t.match(errors, [ - 'npm does not support Node.js 10.0.0', + 'npm does not support Node.js 12.6.0', 'You should probably upgrade to a newer version of node as we', 'can\'t make any promises that npm will work with this version.', ])