Add node version check to index.js

This commit is contained in:
calzoneman 2016-08-04 19:00:20 -07:00
parent 38c3883c01
commit da99ea8288
2 changed files with 8 additions and 1 deletions

View File

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

View File

@ -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"
},