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

This commit is contained in:
fly6516 2024-12-17 18:30:22 +08:00
parent e13c5fc102
commit 4d90afb424

View File

@ -21,8 +21,10 @@ jobs:
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
#curl -fsSL https://deb.nodesource.com/setup_20.x | bash -
#apt-get install -y nodejs
apt update
apt install nodejs npm
# 验证安装是否成功
node -v