命令行
sudo vi /etc/hosts // 打开host文件
// 使用国内源安装Homebrew https://gitee.com/cunkai/HomebrewCN
/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"
vim ./.bash_profile // 打开path路径文件
host配置
// git配置
192.30.253.112 github.com
151.101.88.249 github.global.ssl.fastly.net
安装node报错
Mac M1 中,nvm install 可能会安装不了,报clang: error: no such file or directory: ‘CXX=c++’错误 clang: error: no such file or directory: ‘CXX=c++’
解决方案:在iTrem2 中输入arch -x86_64 zsh
快捷键
command + shift + g // 路径入口