node version logic
This commit is contained in:
@@ -384,11 +384,11 @@ def install_nodejs_from_distro():
|
|||||||
|
|
||||||
if shutil.which("node"):
|
if shutil.which("node"):
|
||||||
node_ver = run_out(["node", "--version"], check=False).strip()
|
node_ver = run_out(["node", "--version"], check=False).strip()
|
||||||
print(f"Node.js: {node_ver}")
|
print(f" Node.js: {node_ver}")
|
||||||
|
|
||||||
if shutil.which("npm"):
|
if shutil.which("npm"):
|
||||||
npm_ver = run_out(["npm", "--version"], check=False).strip()
|
npm_ver = run_out(["npm", "--version"], check=False).strip()
|
||||||
print(f"npm: {npm_ver}")
|
print(f" npm: {npm_ver}")
|
||||||
return True
|
return True
|
||||||
|
|
||||||
return False
|
return False
|
||||||
|
|||||||
Reference in New Issue
Block a user