From 13253a66a132abcc6a5c36052af3e1d6d6393a9a 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 | 2 +- 2 files changed, 2 insertions(+), 2 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..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.', ])