Skip to content

Commit dec44de

Browse files
authored
CLI shouldn't necc exit on semver check
1 parent e28ee77 commit dec44de

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lighthouse-cli/index.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,9 @@ const semver = require('semver');
2323
const Printer = require('./printer');
2424
const lighthouse = require('../lighthouse-core');
2525

26-
// node 5.x required due to use of ES2015 features
26+
// node 5.x required due to use of ES2015 features, like spread operator
2727
if (semver.lt(process.version, '5.0.0')) {
28-
console.error('Lighthouse requires node version 5.0 or newer');
29-
process.exit(1);
28+
console.warn('Compatibility error', 'Lighthouse requires node 5+ or 4 with --harmony');
3029
}
3130

3231
const cli = yargs

0 commit comments

Comments
 (0)