浏览代码

Solved Nodejs prerequisite check (#2767)

Pablo GS 1 年之前
父节点
当前提交
bbb9253985
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      reflex/utils/prerequisites.py

+ 3 - 0
reflex/utils/prerequisites.py

@@ -623,6 +623,9 @@ def install_node():
         )
     else:  # All other platforms (Linux, MacOS).
         # TODO we can skip installation if check_node_version() checks out
+        if check_node_version():
+            console.debug("Skipping node installation as it is already installed.")
+            return
         # Add execute permissions to fnm executable.
         os.chmod(constants.Fnm.EXE, stat.S_IXUSR)
         # Install node.