I'm trying to run a basic react native project (tutorial) on Mac, but when running emulator or deploying to a device I'm getting this:
Error: watchman--no-pretty get-sockname returned with exit code null 2016-11-09T23:34:15,970: [cli] Failed to open /Users/myuser/Library/LaunchAgents/com.github.facebook.watchman.plist for write: Not a directory
I tried to reinstall watchman from git brew install --HEAD watchman
but it didn't help.
Any suggestions?
Thanks
Ok, so the problem was I had a file ~/Library/LaunchAgents pointing to homebrew.mxcl.postgresql instead of the folder. So I just moved homebrew.mxcl.postgresql to a temp folder, deleted ~/Library/LaunchAgents, created a ~/Library/LaunchAgents folder and copied homebrew.mxcl.postgresql into it.
com.github.facebook.watchman.plist was created for the first time I ran watchman.