check for node version (correctly this time)

This commit is contained in:
Florian Dold 2016-11-03 04:15:29 +01:00
parent 2f57643e2e
commit 4976ba598a

3
configure vendored
View File

@ -11,8 +11,9 @@ if [ ! "$?" -eq 0 ]; then
fi
echo "Using node ${node_version}"
if ! node -p 'process.exit(!/v([0-9]+)/.exec(process.version)[1] >= 4)'; then
if ! node -p 'process.exit(!(/v([0-9]+)/.exec(process.version)[1] >= 4))'; then
echo 'Your node version is too old, use something >v4.x.x'
exit 1
fi
if ! npm --version >/dev/null; then