From da99ea8288441dda96beda2192af9d9d2791dbde Mon Sep 17 00:00:00 2001 From: calzoneman Date: Thu, 4 Aug 2016 19:00:20 -0700 Subject: [PATCH] Add node version check to index.js --- index.js | 7 +++++++ package.json | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index a364c7a1..8a22f774 100644 --- a/index.js +++ b/index.js @@ -1,3 +1,10 @@ +if (/^v0/.test(process.version)) { + console.error('node.js ' + process.version + ' is not supported. ' + + 'For more information, visit ' + + 'https://github.com/calzoneman/sync/wiki/CyTube-3.0-Installation-Guide#nodejs'); + process.exit(1); +} + try { var Server = require("./lib/server"); } catch (err) { diff --git a/package.json b/package.json index cc23710d..49e56c54 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "author": "Calvin Montgomery", "name": "CyTube", "description": "Online media synchronizer and chat", - "version": "3.18.7", + "version": "3.18.8", "repository": { "url": "http://github.com/calzoneman/sync" },