Browse Source

use larger or equal for node version check (#4189)

Khaleel Al-Adhami 7 months ago
parent
commit
35810fe1bd
1 changed files with 3 additions and 8 deletions
  1. 3 8
      reflex/utils/prerequisites.py

+ 3 - 8
reflex/utils/prerequisites.py

@@ -146,14 +146,9 @@ def check_node_version() -> bool:
         Whether the version of Node.js is valid.
         Whether the version of Node.js is valid.
     """
     """
     current_version = get_node_version()
     current_version = get_node_version()
-    if current_version:
-        # Compare the version numbers
-        return (
-            current_version >= version.parse(constants.Node.MIN_VERSION)
-            if constants.IS_WINDOWS or path_ops.use_system_node()
-            else current_version == version.parse(constants.Node.VERSION)
-        )
-    return False
+    return current_version is not None and current_version >= version.parse(
+        constants.Node.MIN_VERSION
+    )
 
 
 
 
 def get_node_version() -> version.Version | None:
 def get_node_version() -> version.Version | None: