Fix: Installers use --legacy-peer-deps to resolve Ink conflict
This commit is contained in:
@@ -32,7 +32,7 @@ Set-Location $targetDir
|
||||
|
||||
if (!(Test-Path "node_modules")) {
|
||||
Write-Host "Installing dependencies..." -ForegroundColor Yellow
|
||||
npm install
|
||||
npm install --legacy-peer-deps
|
||||
} else {
|
||||
Write-Host "Dependencies already installed." -ForegroundColor Green
|
||||
}
|
||||
|
||||
@@ -12,7 +12,7 @@ REM --- Auto-Install Check ---
|
||||
if not exist "node_modules" (
|
||||
echo [INFO] First run detected! Installing dependencies...
|
||||
echo [INFO] This might take a minute...
|
||||
call npm install
|
||||
call npm install --legacy-peer-deps
|
||||
if %errorlevel% neq 0 (
|
||||
echo [ERROR] Failed to install dependencies. Please install Node.js.
|
||||
pause
|
||||
|
||||
@@ -11,7 +11,7 @@ echo "========================================"
|
||||
|
||||
if [ ! -d "node_modules" ]; then
|
||||
echo "[INFO] First run detected! Installing dependencies..."
|
||||
npm install
|
||||
npm install --legacy-peer-deps
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "[ERROR] Failed to install dependencies. Please install Node.js."
|
||||
exit 1
|
||||
|
||||
@@ -43,7 +43,7 @@ cd "$TARGET_DIR"
|
||||
|
||||
if [ ! -d "node_modules" ]; then
|
||||
echo -e "\033[1;33mInstalling dependencies...\033[0m"
|
||||
npm install
|
||||
npm install --legacy-peer-deps
|
||||
else
|
||||
echo -e "\033[0;32mDependencies already installed.\033[0m"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user