From 099e01c25aa85e765b4c48b67b587bf8faf57240 Mon Sep 17 00:00:00 2001 From: Dragory <2606411+Dragory@users.noreply.github.com> Date: Sun, 9 Jun 2019 21:02:34 +0300 Subject: [PATCH] Update Node.js version check at startup to require Node.js 10 --- CHANGELOG.md | 3 +++ src/index.js | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) 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); }