We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 43ad4ce commit 04cb61bCopy full SHA for 04cb61b
tools/shared.py
@@ -305,7 +305,8 @@ def env_with_node_in_path():
305
def check_node_version():
306
try:
307
actual = run_process(config.NODE_JS + ['--version'], stdout=PIPE).stdout.strip()
308
- version = actual.replace('v', '').replace('-pre', '').split('.')
+ version = actual.replace('v', '')
309
+ version = version.split('-')[0].split('.')
310
version = tuple(int(v) for v in version)
311
except Exception as e:
312
diagnostics.warning('version-check', 'cannot check node version: %s', e)
0 commit comments