From e289be56b6433809e586c89c43a01ddbfb7914fe Mon Sep 17 00:00:00 2001 From: vet Date: Mon, 13 Apr 2026 14:11:53 +0700 Subject: [PATCH] =?UTF-8?q?=E7=8E=AF=E5=A2=83=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 00-init-tools.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/00-init-tools.sh b/00-init-tools.sh index 6843769..595f9d6 100755 --- a/00-init-tools.sh +++ b/00-init-tools.sh @@ -203,6 +203,11 @@ _install_node() { _append_profile 'export PATH=$PATH:/usr/local/bin' + # 将 GitHub SSH 地址重写为 HTTPS(服务器通常没有 GitHub SSH 密钥) + git config --global url."https://github.com/".insteadOf "git+ssh://git@github.com/" 2>/dev/null || true + git config --global url."https://github.com/".insteadOf "ssh://git@github.com/" 2>/dev/null || true + git config --global url."https://github.com/".insteadOf "git@github.com:" 2>/dev/null || true + success " Node.js $(node --version),npm $(npm --version) 安装完成" _has pnpm && success " pnpm $(pnpm --version)" _has yarn && success " yarn $(yarn --version)"