Update Node.js version ranges in package.json and index.js
parent
9df221aa02
commit
8ba25d9504
|
@ -42,7 +42,7 @@
|
||||||
"supervisor": "^0.12.0"
|
"supervisor": "^0.12.0"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=10.0.0 <14.0.0"
|
"node": ">=12.0.0 <14.0.0"
|
||||||
},
|
},
|
||||||
"husky": {
|
"husky": {
|
||||||
"hooks": {
|
"hooks": {
|
||||||
|
|
|
@ -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 < 11) {
|
if (nodeMajorVersion < 12) {
|
||||||
console.error("Unsupported NodeJS version! Please install Node.js 11, 12, 13, or 14.");
|
console.error("Unsupported NodeJS version! Please install Node.js 12, 13, or 14.");
|
||||||
process.exit(1);
|
process.exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue