From d67b0fcde13371c223e0754ff5bd975a8c4f41ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Gruszczy=C5=84ski?= Date: Sun, 26 Oct 2025 18:33:01 +0100 Subject: [PATCH] cleanups --- npm_install.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/npm_install.py b/npm_install.py index 670d324..86e0c3c 100644 --- a/npm_install.py +++ b/npm_install.py @@ -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: