Skip to content

Commit 738a404

Browse files
wraithgarlukekarrys
authored andcommitted
fix: bump knownBroken to <12.5.0
1 parent 0a957f5 commit 738a404

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/cli.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ module.exports = async process => {
1313
// checks as early as possible so the user gets the error message.
1414
const semver = require('semver')
1515
const supported = require('../package.json').engines.node
16-
const knownBroken = '<6.2.0 || 9 <9.3.0'
16+
const knownBroken = '<12.5.0'
1717

1818
const nodejsVersion = process.version.replace(/-.*$/, '')
1919
/* eslint-disable no-console */

test/lib/cli.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,12 +196,12 @@ t.test('unsupported node version', async t => {
196196
const { cli } = await cliMock(t, {
197197
globals: {
198198
'console.error': (msg) => errors.push(msg),
199-
'process.version': '10.0.0',
199+
'process.version': '12.6.0',
200200
},
201201
})
202202
await cli(process)
203203
t.match(errors, [
204-
'npm does not support Node.js 10.0.0',
204+
'npm does not support Node.js 12.6.0',
205205
'You should probably upgrade to a newer version of node as we',
206206
'can\'t make any promises that npm will work with this version.',
207207
])

0 commit comments

Comments
 (0)