diff options
author | Florian Dold <florian.dold@gmail.com> | 2016-11-03 04:15:29 +0100 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2016-11-03 04:15:29 +0100 |
commit | 4976ba598a0d80e117cf8ca9fbfbbd96b1a89645 (patch) | |
tree | b5989e670d69dcf77f12cde59eb396a707aa6afc /configure | |
parent | 2f57643e2ec04af0e8be8a5c2b4110b544946cfc (diff) |
check for node version (correctly this time)
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 |