mirror of https://github.com/calzoneman/sync.git
Error on node < 8
This commit is contained in:
parent
367df3d70b
commit
cb95aaa4e8
2
index.js
2
index.js
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
const ver = process.version.match(/v(\d+)\.\d+\.\d+/);
|
const ver = process.version.match(/v(\d+)\.\d+\.\d+/);
|
||||||
|
|
||||||
if (parseInt(ver[1], 10) < 6) {
|
if (parseInt(ver[1], 10) < 8) {
|
||||||
console.error(
|
console.error(
|
||||||
`node.js ${process.version} is not supported. ` +
|
`node.js ${process.version} is not supported. ` +
|
||||||
'CyTube requires node v6 or later.'
|
'CyTube requires node v6 or later.'
|
||||||
|
|
Loading…
Reference in New Issue