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 { try {
var Server = require("./lib/server"); var Server = require("./lib/server");
} catch (err) { } catch (err) {

View file

@ -2,7 +2,7 @@
"author": "Calvin Montgomery", "author": "Calvin Montgomery",
"name": "CyTube", "name": "CyTube",
"description": "Online media synchronizer and chat", "description": "Online media synchronizer and chat",
"version": "3.18.7", "version": "3.18.8",
"repository": { "repository": {
"url": "http://github.com/calzoneman/sync" "url": "http://github.com/calzoneman/sync"
}, },