环境配置

This commit is contained in:
vet
2026-04-13 14:11:53 +07:00
parent a79bc815c6
commit e289be56b6

View File

@@ -203,6 +203,11 @@ _install_node() {
_append_profile 'export PATH=$PATH:/usr/local/bin' _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) 安装完成" success " Node.js $(node --version)npm $(npm --version) 安装完成"
_has pnpm && success " pnpm $(pnpm --version)" _has pnpm && success " pnpm $(pnpm --version)"
_has yarn && success " yarn $(yarn --version)" _has yarn && success " yarn $(yarn --version)"