问题描述
我正在尝试运行 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