homebrew - 在安装非标准 Homebrew 软件时安装 watchman

标签 homebrew watchman

我正在使用React Native,它需要watchman。运行 react-native run-ios 时,我看到此错误。

watchman --no-pretty get-sockname returned with exit code=1, signal=null, 
stderr= 2017-05-05T08:17:49,256: [2110218240] while computing sockname: 
failed to create /usr/local/var/run/watchman/foo-state: No such file or directory

经过调查,这似乎是由于没有安装标准的 /usr/local/ Homebrew 程序造成的。

他们是改变watchman使用的statedir的方法吗?

最佳答案

我能够通过创建目录并授予我的用户该目录的所有权来解决此问题。

sudo mkdir /usr/local/var/run/watchman/foo-state
sudo chown -R myusername /usr/local/var/run/watchman/foo-state

关于homebrew - 在安装非标准 Homebrew 软件时安装 watchman,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43794664/

相关文章:

mysql - 使用 Homebrew 软件安装时更改 mysql 数据库位置

python - 使用 brew 安装 Pyqt4

react-native - 启动守望者守望模式失败

homebrew - 无法在 mac os yosemite 中通过 brew 链接 PCRE

更新 Homebrew 软件 OS X 时的 Git 警告

postgresql - PostGIS Homebrew 安装引用旧路径?

ember-cli - ember-cli 使用nodewatcher/watchman 做什么?

firebase - 提供Firebase功能不会在Windows上热重载

mysql - 尝试将文件导入 MySQL (5.7.16),出现错误代码 : 1290( --secure-file-priv) on Mac

ios - 无法读取 null React Native iOS 的属性 'root'