2017-05-05 91 views
1

我正在使用需要watchman的React Native。当运行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/自制安装引起的。

他们是否改变看守所使用的statedir

+0

为什么你会有一个非标准的自制软件安装? – Toby

+0

这不是我可以在工作站上更改的东西。 – arvinsim

回答

0

watchman --help

--statefile=PATH  Specify path to file to hold watch and trigger state 

所以我认为你需要使用--statefile选项。

+0

我不知道这将如何帮助,因为这意味着编辑在React Native中运行包管理器的脚本。 – arvinsim

相关问题