From d25c3b48135cea8db72869e4fc9f7e8293cbc1b0 Mon Sep 17 00:00:00 2001 From: Juhyung Park Date: Sun, 23 Nov 2025 23:56:11 +0900 Subject: [PATCH] Prevent Javascript OOM On a 8GB machine, heap_size_limit is set too low, causing installation failures. Signed-off-by: Juhyung Park --- install.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/install.sh b/install.sh index 2640f83..4ad8eb9 100755 --- a/install.sh +++ b/install.sh @@ -12,6 +12,9 @@ if ! command -v pnpm >/dev/null 2>&1; then exit 1 fi +# Prevent Javascript OOM +export NODE_OPTIONS="--max-old-space-size=4096" + if [[ "$USER" != "immich" ]]; then # Disable systemd services, if installed (