소스 검색

use system npm when REFLEX_USE_SYSTEM_NODE is passed (#4133)

Khaleel Al-Adhami 7 달 전
부모
커밋
c619c72211
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      reflex/utils/path_ops.py

+ 1 - 1
reflex/utils/path_ops.py

@@ -196,7 +196,7 @@ def get_npm_path() -> str | None:
         The path to the npm binary file.
     """
     npm_path = Path(constants.Node.NPM_PATH)
-    if not npm_path.exists():
+    if use_system_node() or not npm_path.exists():
         return str(which("npm"))
     return str(npm_path)