Simar Simar - 1 year ago 247
React JSX Question

React Native `npm start` with watchman error

I was first getting this issue:

Then I followed this solution to resolve for that issue:

Now when I enter

npm start
I get
[sane] Warning: Lost connection to watchman, reconnecting..
. Any suggestions?

Update: This started happening when I updated my MacOS to MacOS Sierra.

output after <code>npm start</code>

Update: So I tried running
react-native run-ios
which opens a new console window and invokes
npm start
. Its still gives the
[sane] Warning: Lost connection to watchman, reconnecting..
warnings but its builds the bundle. So watchman connection is getting broken in between. Here is the console screenshot:
screenshot of console

Answer Source

I solved this problem by following the solution provided by David but I had to do some extra steps because I already had installed watchman using brew. Here are the list of commands for the solution:

Deleting watchman (installed by brew):

$ brew install rmtree
$ brew rmtree watchman
$ sudo rm -rf /usr/local/var/run/watchman

Manually install Watchman v4.7.0 (credits to David):

$ git clone
$ cd watchman
$ git checkout v4.7.0
$ ./
$ ./configure
$ make
$ sudo make install

Chmod your user's watchman state directory:

$ chmod 0700 /usr/local/var/run/watchman/<user>-state
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download