From 738a404454677b78b25ce82a8d2e4c1f46d57ffa Mon Sep 17 00:00:00 2001 From: Gar Date: Mon, 28 Mar 2022 06:44:22 -0700 Subject: [PATCH] fix: bump knownBroken to <12.5.0 --- lib/cli.js | 2 +- test/lib/cli.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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..d36048cd918c6 100644 --- a/test/lib/cli.js +++ b/test/lib/cli.js @@ -196,12 +196,12 @@ t.test('unsupported node version', async t => { const { cli } = await cliMock(t, { globals: { 'console.error': (msg) => errors.push(msg), - 'process.version': '10.0.0', + 'process.version': '12.6.0', }, }) 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.', ])