From 68d5cadd145b81f4d2e26cc2b7d8e4f0a1cde909 Mon Sep 17 00:00:00 2001 From: Gemini AI Date: Sun, 14 Dec 2025 01:04:49 +0400 Subject: [PATCH] Fix: Installers now force dependency install with --legacy-peer-deps on every run --- Install.ps1 | 8 ++------ install.sh | 12 +++++++----- 2 files changed, 9 insertions(+), 11 deletions(-) diff --git a/Install.ps1 b/Install.ps1 index 1bdacf1..7d3f1e7 100644 --- a/Install.ps1 +++ b/Install.ps1 @@ -30,12 +30,8 @@ if (Test-Path $targetDir) { Set-Location $targetDir -if (!(Test-Path "node_modules")) { - Write-Host "Installing dependencies..." -ForegroundColor Yellow - npm install --legacy-peer-deps -} else { - Write-Host "Dependencies already installed." -ForegroundColor Green -} +Write-Host "Installing dependencies..." -ForegroundColor Yellow +npm install --legacy-peer-deps Write-Host "Installation complete! Launching..." -ForegroundColor Green .\OpenQode.bat diff --git a/install.sh b/install.sh index 39be97a..9e045af 100644 --- a/install.sh +++ b/install.sh @@ -41,12 +41,14 @@ fi cd "$TARGET_DIR" -if [ ! -d "node_modules" ]; then - echo -e "\033[1;33mInstalling dependencies...\033[0m" - npm install --legacy-peer-deps -else - echo -e "\033[0;32mDependencies already installed.\033[0m" +echo -e "\033[1;33mInstalling dependencies...\033[0m" +npm install --legacy-peer-deps +if [ $? -ne 0 ]; then + echo -e "\033[0;31mDependency installation failed. Please check logs.\033[0m" + # Don't exit, maybe it works anyway? No, strict. + exit 1 fi +echo -e "\033[0;32mDependencies installed.\033[0m" echo -e "\033[0;32mInstallation complete! Launching...\033[0m" chmod +x OpenQode.sh