diff --git a/npm_install.py b/npm_install.py index 77cb25a..ab530e6 100644 --- a/npm_install.py +++ b/npm_install.py @@ -260,7 +260,7 @@ def set_file_ownership(files: list[str | Path], owner: str, mode: int | None = N def ensure_minimum_nodejs(min_version=MIN_NODEJS_VERSION): with step("Checking Node.js version requirements"): try: - node_ver = runout(["node", "--version"], check=False).strip() + node_ver = run_out(["node", "--version"], check=False).strip() match = re.match(r'v?(\d+)', node_ver) if match: @@ -275,9 +275,9 @@ def ensure_minimum_nodejs(min_version=MIN_NODEJS_VERSION): install_node_from_nodesource(str(min_version)) if shutil.which("node"): - node_ver = runout(["node", "--version"], check=False).strip() + node_ver = run_out(["node", "--version"], check=False).strip() if shutil.which("npm"): - npm_ver = runout(["npm", "--version"], check=False).strip() + npm_ver = run_out(["npm", "--version"], check=False).strip() printf(f"Node.js: {node_ver}") printf(f" npm: {npm_ver}") else: