Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Watchman: Library/LaunchAgents/com.github.facebook.watchman.plist for write: Not a directory

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

like image 629
o..o Avatar asked Nov 21 '25 10:11

o..o


2 Answers

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
like image 129
Varunkumar Gande Avatar answered Nov 24 '25 01:11

Varunkumar Gande


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.

like image 44
o..o Avatar answered Nov 24 '25 02:11

o..o



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!