From fb975cdc4eb18a5da76f67b7ed3603924f16de15 Mon Sep 17 00:00:00 2001 From: NixReaper Date: Sat, 25 Apr 2026 09:55:31 -0500 Subject: [PATCH] fix: install Node.js 20 LTS before UI build steps npm was never installed, causing the NixServer/NixClient builds to fail immediately after 'Building NixServer...' with no visible error. Added NodeSource setup_20.x before the ondrej/php PPA, then included nodejs in the apt-get install list. NodeSource gives us npm 10+ and Node 20 LTS rather than Ubuntu's stale node package. --- install.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 596d118..277dcca 100644 --- a/install.sh +++ b/install.sh @@ -96,6 +96,15 @@ if ! step_done "packages"; then # Prereqs for add-apt-repository apt-get install -y -qq ca-certificates gnupg software-properties-common + # Node.js 20 LTS via NodeSource (required for UI builds) + if ! command -v node &>/dev/null; then + info "Adding NodeSource Node.js 20 LTS repository…" + curl -fsSL https://deb.nodesource.com/setup_20.x | bash - 2>/dev/null + success "NodeSource repository added" + else + info "Node.js $(node --version) already present" + fi + # ondrej/php PPA is required for PHP 8.2 on Ubuntu 24.04 if ! grep -rq "ondrej/php" /etc/apt/sources.list /etc/apt/sources.list.d/ 2>/dev/null; then info "Adding ondrej/php PPA (required for PHP 8.2 on Ubuntu 24.04)…" @@ -108,7 +117,7 @@ if ! step_done "packages"; then apt-get install -y -qq \ build-essential pkg-config libssl-dev libmariadb-dev curl wget git unzip \ - ca-certificates gnupg software-properties-common \ + ca-certificates gnupg software-properties-common nodejs \ apache2 \ php8.3 php8.3-fpm php8.3-cli php8.3-mysql php8.3-curl php8.3-mbstring \ php8.3-xml php8.3-zip php8.3-gd php8.3-intl php8.3-bcmath \