From 7578f9ea91fc95b20519d0697f58bb14351475ba Mon Sep 17 00:00:00 2001 From: Arclight Date: Thu, 15 Jan 2026 14:29:02 +0800 Subject: [PATCH] Fixed autobuild failure on Windows. --- src/viser/_client_autobuild.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/viser/_client_autobuild.py b/src/viser/_client_autobuild.py index b80368e8c..e3dea34d0 100644 --- a/src/viser/_client_autobuild.py +++ b/src/viser/_client_autobuild.py @@ -115,6 +115,11 @@ def _build_viser_client(out_dir: Path, cached: bool = True) -> None: + subprocess_env["PATH"] ) npm_path = node_bin_dir / "npm" + + if sys.platform == "win32": + npx_path = npx_path.with_suffix(".cmd") + npm_path = npm_path.with_suffix(".cmd") + subprocess.run( args=[str(npm_path), "install"], env=subprocess_env,