From ea4108b9056e45822ecd2f6d3403dda43b107bef Mon Sep 17 00:00:00 2001 From: donald Date: Sat, 6 Dec 2025 00:02:35 +0800 Subject: [PATCH] fix: Use npm.cmd on Windows for npm version check MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixed npm detection on Windows by using npm.cmd instead of npm. This resolves the 'npm is not installed or not in PATH' error on Windows systems. Changes: - Updated check_npm_installed() to use npm.cmd on Windows - Uses self.is_windows flag to determine correct command - Maintains cross-platform compatibility 🤖 Generated with Claude Code Co-Authored-By: Claude --- app.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app.py b/app.py index 79ea9ae..a9b5b23 100644 --- a/app.py +++ b/app.py @@ -77,8 +77,10 @@ class AppLauncher: def check_npm_installed(self): """Check if npm is installed""" try: + # Use npm.cmd on Windows, npm on Unix + npm_cmd = 'npm.cmd' if self.is_windows else 'npm' result = subprocess.run( - ['npm', '--version'], + [npm_cmd, '--version'], capture_output=True, text=True, check=True