From c619c722119e4c3033c32b91995262475e8ec6d9 Mon Sep 17 00:00:00 2001 From: Khaleel Al-Adhami Date: Tue, 8 Oct 2024 13:25:49 -0700 Subject: [PATCH] use system npm when REFLEX_USE_SYSTEM_NODE is passed (#4133) --- reflex/utils/path_ops.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reflex/utils/path_ops.py b/reflex/utils/path_ops.py index 1de635b88..79596716c 100644 --- a/reflex/utils/path_ops.py +++ b/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)