Skip to content

Commit

Permalink
fix: update Node.js version check (#438)
Browse files Browse the repository at this point in the history
  • Loading branch information
EwanLyon authored and Alex Van Camp committed Oct 2, 2018
1 parent c444d9b commit 086621d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ if (!process.env.NODECG_ROOT) {

const semver = require('semver');
const nodeVersion = process.versions.node;
if (!semver.satisfies(nodeVersion, '>=6')) {
console.error('ERROR: NodeCG requires Node.js >=6 and npm >=2');
if (!semver.satisfies(nodeVersion, '>=8.3')) {
console.error('ERROR: NodeCG requires Node.js >=8.3 and npm >=2');
console.error(` Your Node.js version: v${nodeVersion}`);
process.exit(1);
}
Expand Down

0 comments on commit 086621d

Please sign in to comment.