This commit is contained in:
Mateusz Gruszczyński
2025-10-26 18:33:01 +01:00
parent 1a2cbc10dd
commit d67b0fcde1

View File

@@ -320,6 +320,13 @@ def ensure_minimum_nodejs(min_version=MIN_NODEJS_VERSION):
if match:
current_major = int(match.group(1))
if current_major >= min_version:
if shutil.which("npm"):
npm_ver = run_out(["npm", "--version"], check=False).strip()
print(f"Node.js: {node_ver}")
print(f" npm: {npm_ver}")
else:
print(f"Node.js: {node_ver}")
return True
except FileNotFoundError:
pass
@@ -1057,7 +1064,7 @@ def install_node_from_nodesource(version: str):
if shutil.which("npm"):
npm_ver = run_out(["npm", "--version"], check=False).strip()
print(f"✔ npm {npm_ver} installed successfully")
print(f"\n✔ npm {npm_ver} installed successfully")
else:
print(f"✖ npm could not be installed - manual intervention required")
else: