为什么我不能使用 brew 命令安装 watchman?

问题描述

我正在尝试运行 React Native 应用程序,但有人告诉我需要下载“watchman”。 当我尝试运行命令 brew install watchman 时,它给出了以下错误

Error: The following formula cannot be installed from bottle and must be
built from source.
  python@3.9
Install the Command Line Tools for Xcode 11.3.1 from:
  https://developer.apple.com/download/more/

我需要安装 Xcode 还是我只是遗漏了什么?有没有更简单的方法安装watchman?

提前致谢。

解决方法

如果您不介意,可以尝试直接从 Facebook 的 Homebrew Tap 安装:

brew tap facebook/fb
brew update
brew install facebook/fb/watchman

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...