Fix Node.js 18 - download binary directly from nodejs.org
Some checks failed
CI Pipeline / Rust Format Check (push) Successful in 4s
CI Pipeline / Clippy Lints (push) Successful in 45s
CI Pipeline / Security Audit (push) Has been cancelled
CI Pipeline / Frontend Lint & Type Check (push) Has been cancelled
CI Pipeline / Build .deb & Release (push) Has been cancelled
CI Pipeline / Rust Unit Tests (push) Has been cancelled
Some checks failed
CI Pipeline / Rust Format Check (push) Successful in 4s
CI Pipeline / Clippy Lints (push) Successful in 45s
CI Pipeline / Security Audit (push) Has been cancelled
CI Pipeline / Frontend Lint & Type Check (push) Has been cancelled
CI Pipeline / Build .deb & Release (push) Has been cancelled
CI Pipeline / Rust Unit Tests (push) Has been cancelled
This commit is contained in:
@ -161,15 +161,15 @@ jobs:
|
|||||||
|
|
||||||
- name: Install Node.js 18
|
- name: Install Node.js 18
|
||||||
run: |
|
run: |
|
||||||
# Completely remove old Node.js packages
|
# Download and install Node.js 18 binary directly
|
||||||
apt-get purge -y libnode72 libnode-dev nodejs || true
|
NODE_VERSION="18.20.8"
|
||||||
apt-get autoremove -y || true
|
curl -fsSL "https://nodejs.org/dist/v${NODE_VERSION}/node-v${NODE_VERSION}-linux-x64.tar.gz" -o /tmp/nodejs.tar.gz
|
||||||
apt-get clean
|
tar -xzf /tmp/nodejs.tar.gz -C /usr/local --strip-components=1
|
||||||
# Remove any remaining conflicting files
|
rm -f /tmp/nodejs.tar.gz
|
||||||
rm -rf /usr/share/systemtap/tapset/node.stp || true
|
# Create symlinks
|
||||||
# Install Node.js 18 from NodeSource
|
ln -sf /usr/local/bin/node /usr/bin/node
|
||||||
curl -fsSL https://deb.nodesource.com/setup_18.x | bash -
|
ln -sf /usr/local/bin/npm /usr/bin/npm
|
||||||
apt-get install -y nodejs
|
ln -sf /usr/local/bin/npx /usr/bin/npx
|
||||||
node --version
|
node --version
|
||||||
npm --version
|
npm --version
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user