diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index ac1e84a..f378021 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -161,14 +161,18 @@ jobs: - name: Install Node.js 18 run: | - # Remove conflicting packages from old Node.js installation - apt-get remove -y libnode-dev libnode72 node-gyp npm || true + # Completely remove old Node.js packages + apt-get purge -y libnode72 libnode-dev nodejs || true apt-get autoremove -y || true + apt-get clean + # Remove any remaining conflicting files + rm -rf /usr/share/systemtap/tapset/node.stp || 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 }}"