Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

fix(update): also delete package-lock.json on Safe-Install retry

[._.]/ Adam Eivycd757ecc0c42
diff --git a/update.ps1 b/update.ps1
index b07004c092..492ef12d62 100644
--- a/update.ps1
+++ b/update.ps1
@@ -80,11 +80,14 @@ function Safe-Install {
Invoke-Logged npm install
if ($LASTEXITCODE -eq 0) { Pop-Location; return }
- Write-SafeHost "⚠️ npm install failed for $Label — cleaning node_modules and retrying..." -ForegroundColor Yellow
+ Write-SafeHost "⚠️ npm install failed for $Label — cleaning node_modules + package-lock.json and retrying..." -ForegroundColor Yellow
Pop-Location
if (Test-Path "$Dir/node_modules") {
Remove-Item -Recurse -Force "$Dir/node_modules" -ErrorAction SilentlyContinue
}
+ if (Test-Path "$Dir/package-lock.json") {
+ Remove-Item -Force "$Dir/package-lock.json" -ErrorAction SilentlyContinue
+ }
Push-Location $Dir
Invoke-Logged npm install
if ($LASTEXITCODE -eq 0) { Pop-Location; return }
diff --git a/update.sh b/update.sh
index 098293f790..09a0eba590 100755
--- a/update.sh
+++ b/update.sh
@@ -49,8 +49,9 @@ safe_install() {
return 0
fi
- log "⚠️ npm install failed for $label — cleaning node_modules and retrying..."
+ log "⚠️ npm install failed for $label — cleaning node_modules + package-lock.json and retrying..."
rm -rf "$dir/node_modules"
+ rm -f "$dir/package-lock.json"
if (cd "$dir" && run npm install); then
return 0
fi