我正在使用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/