Error on node < 8

This commit is contained in:
Calvin Montgomery 2019-03-27 20:33:54 -07:00
parent 367df3d70b
commit cb95aaa4e8

View file

@ -2,7 +2,7 @@
const ver = process.version.match(/v(\d+)\.\d+\.\d+/);
if (parseInt(ver[1], 10) < 6) {
if (parseInt(ver[1], 10) < 8) {
console.error(
`node.js ${process.version} is not supported. ` +
'CyTube requires node v6 or later.'