Sim*_*mar 3 facebook native reactjs watchman react-native
我第一次遇到这个问题:https://github.com/facebook/react-native/issues/10088
然后我按照这个解决方案解决了这个问题:https://github.com/facebook/react-native/issues/910#issuecomment-94181845
现在,当我进入npm start我得到[sane] Warning: Lost connection to watchman, reconnecting...有什么建议?
更新:当我将MacOS更新到MacOS Sierra时,就开始发生这种情况.
Sim*_*mar 12
我通过遵循David提供的解决方案解决了这个问题,但我不得不做一些额外的步骤,因为我已经使用brew安装了watchman.以下是解决方案的命令列表:
删除守望者(由brew安装):
$ brew install rmtree
$ brew rmtree watchman
$ sudo rm -rf /usr/local/var/run/watchman
Run Code Online (Sandbox Code Playgroud)
手动安装Watchman v4.7.0(大卫的信用):
$ git clone https://github.com/facebook/watchman.git
$ cd watchman
$ git checkout v4.7.0
$ ./autogen.sh
$ ./configure
$ make
$ sudo make install
Run Code Online (Sandbox Code Playgroud)
Chmod你的用户的守望者状态目录:
$ chmod 0700 /usr/local/var/run/watchman/<user>-state
Run Code Online (Sandbox Code Playgroud)
在项目文件夹中运行此命令
watchman watch-del-all && npm start --reset-cache
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
5324 次 |
| 最近记录: |