From 4d90afb4240a4b4bff807ddcb5201319f6da58b3 Mon Sep 17 00:00:00 2001 From: fly6516 Date: Tue, 17 Dec 2024 18:30:22 +0800 Subject: [PATCH] change nodejs installation --- .gitea/workflows/ci.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index c17b4e5..d10e76a 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -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