From b89a77e1e4ca5f758e642e4687f86703158b2a06 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 16 Feb 2026 21:31:49 +0000 Subject: [PATCH 1/2] Initial plan From 0d23e14ab59e1500a8fdfdaaec10ae7259b44920 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 16 Feb 2026 21:35:04 +0000 Subject: [PATCH 2/2] refactor: use cross-platform command check instead of which Co-authored-by: dermatz <6103201+dermatz@users.noreply.github.com> --- src/Service/NodePackageManager.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Service/NodePackageManager.php b/src/Service/NodePackageManager.php index fa7eafa..21e7449 100644 --- a/src/Service/NodePackageManager.php +++ b/src/Service/NodePackageManager.php @@ -244,8 +244,8 @@ private function diagnoseAndReportNpmFailure(string $path, SymfonyStyle $io, \Ex private function isCommandAvailable(string $command): bool { try { - $this->shell->execute('which ' . $command . ' > /dev/null 2>&1'); - return true; + $output = trim($this->shell->execute($command . ' --version 2>/dev/null')); + return $output !== ''; } catch (\Exception $e) { return false; }