check for node version (correctly this time)
This commit is contained in:
parent
2f57643e2e
commit
4976ba598a
3
configure
vendored
3
configure
vendored
@ -11,8 +11,9 @@ if [ ! "$?" -eq 0 ]; then
|
|||||||
fi
|
fi
|
||||||
echo "Using node ${node_version}"
|
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'
|
echo 'Your node version is too old, use something >v4.x.x'
|
||||||
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! npm --version >/dev/null; then
|
if ! npm --version >/dev/null; then
|
||||||
|
Loading…
Reference in New Issue
Block a user