Private
Public Access
1
0

Fix Node.js 18 - use n version manager for sustainable installation
Some checks failed
CI Pipeline / Rust Format Check (push) Successful in 4s
CI Pipeline / Clippy Lints (push) Successful in 45s
CI Pipeline / Rust Unit Tests (push) Successful in 1m1s
CI Pipeline / Security Audit (push) Successful in 4s
CI Pipeline / Frontend Lint & Type Check (push) Failing after 1s
CI Pipeline / Build .deb & Release (push) Has been skipped

This commit is contained in:
2026-04-27 20:03:00 +00:00
parent fea924f31e
commit d6fa680f80

View File

@ -161,15 +161,12 @@ jobs:
- name: Install Node.js 18
run: |
# Download and install Node.js 18 binary directly
NODE_VERSION="18.20.8"
curl -fsSL "https://nodejs.org/dist/v${NODE_VERSION}/node-v${NODE_VERSION}-linux-x64.tar.gz" -o /tmp/nodejs.tar.gz
tar -xzf /tmp/nodejs.tar.gz -C /usr/local --strip-components=1
rm -f /tmp/nodejs.tar.gz
# Create symlinks
ln -sf /usr/local/bin/node /usr/bin/node
ln -sf /usr/local/bin/npm /usr/bin/npm
ln -sf /usr/local/bin/npx /usr/bin/npx
# Install n (Node version manager) and use it to install Node.js 18
npm install -g n
n 18
# Ensure node and npm are in PATH
export PATH="/usr/local/bin:$PATH"
hash -r
node --version
npm --version