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
The directory is stored in wrong location, so remove it :
rm ~/Library/LaunchAgents
Create the directory :
mkdir -p ~/Library/LaunchAgents
than safely re-enable the mysql launch :
ln -sfv /usr/local/opt/mysql/*.plist ~/Library/LaunchAgents
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With