brew 安装 yarn 时候失败

1.mac 安装 

brew install yarn

 

报错

Error: Failure while executing; `git config --local --replace-all homebrew.analyticsmessage true` exited with 1.

 

解决办法

 

在terminal输入:

 

xcode-select --install

安装成功之后可以解决

 

2.brew 安装慢

1.cd "$(brew --repo)" && git remote set-url origin https://git.coding.net/homebrew/homebrew.git
2.cd ~
3.brew update

 

 

posted @ 2018-10-29 23:46  Running00  阅读(2205)  评论(0编辑  收藏  举报