安装 homebrew
/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"
敲击完毕后输入 1
若无法成功,可再次输入命令重试
安装成功后重新启动
安装git
brew install git
安装完成后 git version 查看
git config --global user.name "Your Name"
git config --global user.email "email@example.com"
安装nvm
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.39.1/install.sh | bash
或curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh | bash
若安装失败提示403
前往 /etc 文件夹下,修改hosts文件


在最后一行添加 199.232.28.133 raw.githubusercontent.com

本文详细介绍如何在Mac系统中安装Homebrew、Git及Node版本管理器NVM等基础开发工具,并配置必要的环境变量。
1219

被折叠的 条评论
为什么被折叠?



