aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xconfigure3
1 files changed, 2 insertions, 1 deletions
diff --git a/configure b/configure
index 18c14097f..76ab94a7a 100755
--- a/configure
+++ b/configure
@@ -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