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