Fix Node.js 18 - use purge and remove conflicting files
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,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 }}"
|
||||
|
||||
Reference in New Issue
Block a user