From 185aa34f62c9e1deb477f897763a9c431fa25012 Mon Sep 17 00:00:00 2001 From: oznu Date: Sun, 10 Jul 2022 15:52:57 +1000 Subject: [PATCH] set min node version for hb-service --- README.md | 2 +- src/bin/hb-service.ts | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 89b28f8f8..4140c5b42 100755 --- a/README.md +++ b/README.md @@ -90,7 +90,7 @@ MS Internet Explorer (any version) is not supported! While the Homebridge UI should work on Node.js 14+, only the following versions of Node.js are officially supported: * node v14.15.0 or higher -* npm v6.4.1 or higher +* npm v6.14.8 or higher You can check your current versions using these commands: diff --git a/src/bin/hb-service.ts b/src/bin/hb-service.ts index 726ea6409..9815b19db 100644 --- a/src/bin/hb-service.ts +++ b/src/bin/hb-service.ts @@ -615,12 +615,12 @@ export class HomebridgeServiceHelper { } /** - * Checks the current Node.js version is > 10 + * Checks the current Node.js version is > 14 */ private nodeVersionCheck() { - // 64 = v10; - if (parseInt(process.versions.modules, 10) < 64) { - this.logger(`ERROR: Node.js v10.13.0 or greater is required. Current: ${process.version}.`, 'fail'); + // 83 = v14; + if (parseInt(process.versions.modules, 10) < 83) { + this.logger(`ERROR: Node.js v14.15.0 or greater is required. Current: ${process.version}.`, 'fail'); process.exit(1); } }