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