diff --git a/CHANGELOG.md b/CHANGELOG.md index b5f552b..787e543 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ # Changelog +## v2.23.2 +* Update Node.js version check at startup to require Node.js 10 + ## v2.23.1 * Updated required Node.js version in .nvmrc and README (v10 is now the minimum) diff --git a/src/index.js b/src/index.js index ca4d398..dca80ac 100644 --- a/src/index.js +++ b/src/index.js @@ -1,7 +1,7 @@ // Verify NodeJS version const nodeMajorVersion = parseInt(process.versions.node.split('.')[0], 10); -if (nodeMajorVersion < 8) { - console.error('Unsupported NodeJS version! Please install NodeJS 8 or newer.'); +if (nodeMajorVersion < 10) { + console.error('Unsupported NodeJS version! Please install NodeJS 10 or newer.'); process.exit(1); }