Update Node.js version check at startup to require Node.js 10
parent
86b1f8c8ac
commit
099e01c25a
|
@ -1,5 +1,8 @@
|
||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## v2.23.2
|
||||||
|
* Update Node.js version check at startup to require Node.js 10
|
||||||
|
|
||||||
## v2.23.1
|
## v2.23.1
|
||||||
* Updated required Node.js version in .nvmrc and README (v10 is now the minimum)
|
* Updated required Node.js version in .nvmrc and README (v10 is now the minimum)
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
// Verify NodeJS version
|
// Verify NodeJS version
|
||||||
const nodeMajorVersion = parseInt(process.versions.node.split('.')[0], 10);
|
const nodeMajorVersion = parseInt(process.versions.node.split('.')[0], 10);
|
||||||
if (nodeMajorVersion < 8) {
|
if (nodeMajorVersion < 10) {
|
||||||
console.error('Unsupported NodeJS version! Please install NodeJS 8 or newer.');
|
console.error('Unsupported NodeJS version! Please install NodeJS 10 or newer.');
|
||||||
process.exit(1);
|
process.exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue