阅读 108

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的仓库一样的做法

 

原文:https://www.cnblogs.com/shuen/p/15050179.html

文章分类
代码人生
版权声明:本站是系统测试站点,无实际运营。本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件至 XXXXXXo@163.com 举报,一经查实,本站将立刻删除。
相关推荐