Macbook 安装brew坑 从 Error: `fsevents` unavailable (this watcher can only be used on Darwin) 开始

react native跑不起来报错

fsevents` unavailable (this watcher can only be used on Darwin) 

解决方案

npm r -g watchman
brew install watchman

  

跑 brew install watchman报错

brew command not found

解决方案

/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"
安装完毕检查
brew --version

出现问题

homebrew-core是空的

 

按command+shift+g

输入路径

/usr/local/Homebrew/Library/Taps/homebrew

进入文件夹自己下载homebrew-core,官方的仓库好像挂了,那个git地址打开时404,所以自己去git找了

https://github.com/Homebrew/homebrew-core

在/usr/local/Homebrew/Library/Taps/homebrew这个路径下面打终端

 

 


输入
git clone https://github.com/Homebrew/homebrew-core.git
如果不能下载,就把代码fork一份到自己的GitHub下面,然后把上面地址换成自己仓库的github,下载,完事
再次输入brew -- version 就可以看到homebrew-core有了,其他brew的仓库一样的做法

 

posted @ 2021-07-23 18:50  虎太郎的小肚腩  阅读(491)  评论(0编辑  收藏  举报