Watchman: how to install without root privileges ?

Created on 6 Aug 2015  ·  5Comments  ·  Source: facebook/watchman

it seems necessary to have some root privileges to install watchman. Is it possible to do without ?
from source:
screen shot 2015-08-06 at 13 44 24
from brew: I keep getting abort error when lauching watchman commands
screen shot 2015-08-06 at 12 54 33

So then I can't use react-native, having “Watcher took too long to load” error.

Most helpful comment

@akabab in that case, I'd recommend that you do something like this:

cd watchman
./configure --prefix=$HOME
make
make install
PATH=$HOME/bin:$PATH

All 5 comments

Homebrew doesn't have watchman 3.7 yet (https://github.com/Homebrew/homebrew/pull/42519 is tracking that) and it sounds like there is something not quite right with your build environment.

Please try:

brew uninstall --force watchman
brew update
brew install watchman

You do not need to perform a HEAD install (and really should not right now, as we just landed a bunch of slightly experimental code in head).

If the brew build fails, it should suggest some troubleshooting steps to you.

Regarding root privileges, it is not strictly needed to have root privileges, but I have to ask why you don't have root access on your mac, as it seems unusual?

I suspect homebrew hasn't been set up correctly. The following link: https://github.com/Homebrew/homebrew/blob/master/share/doc/homebrew/FAQ.md#why-does-homebrew-say-sudo-is-bad- may be of value.

@wez, I'm at school.

@akabab in that case, I'd recommend that you do something like this:

cd watchman
./configure --prefix=$HOME
make
make install
PATH=$HOME/bin:$PATH

thanks @wez

Was this page helpful?
0 / 5 - 0 ratings