check for node version

This commit is contained in:
Florian Dold 2016-09-26 18:48:14 +02:00
parent 056794eb69
commit ca8f32ad62

4
configure vendored
View File

@ -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