Sign in
apache
/
couchdb-fauxton
/
52f8dfd991f8a216f64814d2115dacfa71b5b02d
/
.
/
version-check.js
blob: c8f6c2372fe4f7584398930bf567f5b06a040646 [
file
] [
log
] [
blame
]
var
semver
=
require
(
'semver'
);
var
version
=
process
.
version
.
replace
(
/^v/
,
''
);
if
(!
semver
.
satisfies
(
version
,
'>=4'
))
{
console
.
error
(
'Error:'
);
console
.
error
(
'Fauxton needs Node 4 or greater to work'
);
process
.
exit
(
1
);
}