Fix: Installers now force dependency install with --legacy-peer-deps on every run
This commit is contained in:
@@ -30,12 +30,8 @@ if (Test-Path $targetDir) {
|
|||||||
|
|
||||||
Set-Location $targetDir
|
Set-Location $targetDir
|
||||||
|
|
||||||
if (!(Test-Path "node_modules")) {
|
|
||||||
Write-Host "Installing dependencies..." -ForegroundColor Yellow
|
Write-Host "Installing dependencies..." -ForegroundColor Yellow
|
||||||
npm install --legacy-peer-deps
|
npm install --legacy-peer-deps
|
||||||
} else {
|
|
||||||
Write-Host "Dependencies already installed." -ForegroundColor Green
|
|
||||||
}
|
|
||||||
|
|
||||||
Write-Host "Installation complete! Launching..." -ForegroundColor Green
|
Write-Host "Installation complete! Launching..." -ForegroundColor Green
|
||||||
.\OpenQode.bat
|
.\OpenQode.bat
|
||||||
|
|||||||
@@ -41,12 +41,14 @@ fi
|
|||||||
|
|
||||||
cd "$TARGET_DIR"
|
cd "$TARGET_DIR"
|
||||||
|
|
||||||
if [ ! -d "node_modules" ]; then
|
|
||||||
echo -e "\033[1;33mInstalling dependencies...\033[0m"
|
echo -e "\033[1;33mInstalling dependencies...\033[0m"
|
||||||
npm install --legacy-peer-deps
|
npm install --legacy-peer-deps
|
||||||
else
|
if [ $? -ne 0 ]; then
|
||||||
echo -e "\033[0;32mDependencies already installed.\033[0m"
|
echo -e "\033[0;31mDependency installation failed. Please check logs.\033[0m"
|
||||||
|
# Don't exit, maybe it works anyway? No, strict.
|
||||||
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
echo -e "\033[0;32mDependencies installed.\033[0m"
|
||||||
|
|
||||||
echo -e "\033[0;32mInstallation complete! Launching...\033[0m"
|
echo -e "\033[0;32mInstallation complete! Launching...\033[0m"
|
||||||
chmod +x OpenQode.sh
|
chmod +x OpenQode.sh
|
||||||
|
|||||||
Reference in New Issue
Block a user