
mac m2芯片 安装 brew 和cocoapods
brew
🍺 The missing package manager for macOS (or Linux)
项目地址:https://gitcode.com/gh_mirrors/br/brew

·
Homebrew的安装
/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"
这里可能会失败,如
git clone
时候报错
error: RPC failed; curl 92 HTTP/2 stream 5 was not closed cleanly before end of the underlying st...
这是可能是因为buffer不够大
解决方案
git config --global http.version HTTP/1.1
git config --global http.postBuffer 524288000
也可能是因为网络原因网络中断,可以尝试多试几次。
中途可能需要输入几次密码
安装成功 但还需要重启终端 或者 运行 下面命令, 否则可能无法使用
source /Users/用户名/.zprofile
安装成功后,关闭终端,然后重新打开终端,查看Homebrew版本
brew -v
安装cocoapods
brew install cocoapods
在克隆代码的之前记得配置ssh密钥
ssh-keygen -t rsa -C "your_email@example.com"
#进入.ssh目录
$ cd ~/.ssh
#查看文件目录
$ ls
#在终端查看私钥(私钥名称默认为id_rsa)
$ cat id_rsa
#在终端查看公钥(公钥名称默认为id_rsa.pub)
$ cat id_rsa.pub
但是在克隆工程的时候依然会出问题
Unable to negotiate with 10.112.17.38 port 22: no matching host key type found. Their offer: ssh-rsa
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
解决方案
1.打开.ssh文件夹
2.新建一个config文件,不带后缀名
3.加入如下内容
Host *
HostkeyAlgorithms +ssh-rsa
PubkeyAcceptedKeyTypes +ssh-rsa




🍺 The missing package manager for macOS (or Linux)
最近提交(Master分支:4 个月前 )
df70c9ff
Revert "cmd/info: only display keg info if tap matches"
9 天前
156ce5b9 - 9 天前
更多推荐
所有评论(0)