Update Node.js version check at startup to require Node.js 10

master
Dragory 2019-06-09 21:02:34 +03:00
parent 86b1f8c8ac
commit 099e01c25a
2 changed files with 5 additions and 2 deletions

View File

@ -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)

View File

@ -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);
}