2017-05-05 122 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

相關問題