commit 63f01ec1ac63874de876fda09ff3d17b86a36cde
parent 5059125bfe5a60aae4e6da79d61d086b4e2e2fce
Author: ng0 <ng0@n0.is>
Date: Fri, 4 Oct 2019 16:00:34 +0000
fix node version check.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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: