From ca8f32ad62d4d3377f5d190deb190913ae3b52a4 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Mon, 26 Sep 2016 18:48:14 +0200 Subject: [PATCH] check for node version --- configure | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/configure b/configure index 6611383c2..18c14097f 100755 --- a/configure +++ b/configure @@ -11,6 +11,10 @@ if [ ! "$?" -eq 0 ]; then fi echo "Using node ${node_version}" +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' +fi + if ! npm --version >/dev/null; then echo 'Node Package Manager (npm) missing' exit 1