Solved Nodejs prerequisite check (#2767)

This commit is contained in:
Pablo GS 2024-03-04 04:47:05 +01:00 committed by GitHub
parent 9e0452beb0
commit bbb9253985
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -623,6 +623,9 @@ def install_node():
)
else: # All other platforms (Linux, MacOS).
# TODO we can skip installation if check_node_version() checks out
if check_node_version():
console.debug("Skipping node installation as it is already installed.")
return
# Add execute permissions to fnm executable.
os.chmod(constants.Fnm.EXE, stat.S_IXUSR)
# Install node.