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

address review: restore --install-links flag, clarify copy-vs-symlink comments

[._.]/ Adam Eivy4943ac05940e
diff --git a/update.ps1 b/update.ps1
index 94420624d4..636821ca44 100644
--- a/update.ps1
+++ b/update.ps1
@@ -16,8 +16,9 @@ Write-Host ""
Write-Host "Updating dependencies..." -ForegroundColor Yellow
Write-Host " Installing root dependencies..."
-# Clean stale workspace dirs that block npm symlink creation (Windows EISDIR fix)
-# Note: install-links=true is set in .npmrc for exFAT compat; the CLI flag was redundant
+# Clean stale workspace copies that block npm install (Windows EISDIR fix).
+# .npmrc sets install-links=true (exFAT compat) so npm copies workspace packages
+# as real dirs; on re-runs npm fails to overwrite them. Remove stale copies first.
$repoNodeModules = Join-Path -Path $PSScriptRoot -ChildPath "node_modules"
@("portos-server", "portos-client") | ForEach-Object {
$wsPath = Join-Path -Path $repoNodeModules -ChildPath $_
@@ -26,7 +27,7 @@ $repoNodeModules = Join-Path -Path $PSScriptRoot -ChildPath "node_modules"
Write-Host " Cleaned stale $wsPath"
}
}
-npm install
+npm install --install-links
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
Write-Host " Installing client dependencies..."