summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2016-09-26 18:48:14 +0200
committerFlorian Dold <florian.dold@gmail.com>2016-09-26 18:48:14 +0200
commitca8f32ad62d4d3377f5d190deb190913ae3b52a4 (patch)
tree7d326b723b55038209fa072db105f69a185f289f /configure
parent056794eb69dae58cb301cea961a1980a60cca0bd (diff)
downloadwallet-core-ca8f32ad62d4d3377f5d190deb190913ae3b52a4.tar.gz
wallet-core-ca8f32ad62d4d3377f5d190deb190913ae3b52a4.tar.bz2
wallet-core-ca8f32ad62d4d3377f5d190deb190913ae3b52a4.zip
check for node version
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure4
1 files changed, 4 insertions, 0 deletions
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