fix nodejs installation
Some checks failed
Java CI / build (push) Has been cancelled

This commit is contained in:
fly6516 2024-12-17 18:24:35 +08:00
parent 016a668392
commit e13c5fc102

View File

@ -17,9 +17,14 @@ jobs:
steps:
- name: Install Node.js
run: |
apt-get update && apt-get install -y curl
curl -fsSL https://rpm.nodesource.com/setup_20.x | bash -
# 更新 apt 包管理器并安装必要的工具
apt-get update && apt-get install -y curl gnupg2 lsb-release ca-certificates
# 安装 Node.js 20.x
curl -fsSL https://deb.nodesource.com/setup_20.x | bash -
apt-get install -y nodejs
# 验证安装是否成功
node -v
npm -v