From 63f01ec1ac63874de876fda09ff3d17b86a36cde Mon Sep 17 00:00:00 2001 From: ng0 Date: Fri, 4 Oct 2019 16:00:34 +0000 Subject: fix node version check. --- configure.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.py b/configure.py index 8fc6e04..a7a2be9 100644 --- a/configure.py +++ b/configure.py @@ -47,7 +47,7 @@ def _tool_node(): if _existence('node') is None: sys.exit('Error: node executable not found.\nIf you are using Linux, Ubuntu or Debian, try installing the\nnode-legacy package or symlink node to nodejs.') else: - if subprocess.getstatusoutput("node -p 'process.exit(!(/v([0-9]+)/.exec(process.version)[1] >= 4))'")[1] is '': + if subprocess.getstatusoutput("node -p 'process.exit(!(/v([0-9]+)/.exec(process.version)[1] >= 4))'")[1] is not '': # and exit(1) here? sys.exit('Your node version is too old, use Node 4.x or newer') else: -- cgit v1.2.3