From 8d4a4286321a8c9333a8d11a13899b09eb476604 Mon Sep 17 00:00:00 2001 From: Echo Date: Mon, 27 Apr 2026 19:49:37 +0000 Subject: [PATCH] Fix Node.js 18 installation - remove conflicting packages first --- .gitea/workflows/ci.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index da72ba2..7946703 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -161,11 +161,14 @@ jobs: - name: Install Node.js 18 run: | + # Remove conflicting packages from old Node.js installation + apt-get remove -y libnode-dev node-gyp npm || true + apt-get autoremove -y || true + # Install Node.js 18 from NodeSource curl -fsSL https://deb.nodesource.com/setup_18.x | bash - apt-get install -y nodejs node --version npm --version - - name: Checkout repository run: | TOKEN="${{ secrets.GITEATOKEN }}"