Sign in
apache
/
couchdb-fauxton
/
9b04f6f31b6cbe540819ab1dfe342d2176ce45ea
/
.
/
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
);
}