Watchman:Library / LaunchAgents / com.github.facebook.watchman.plist for write:不是目录

时间:2016-11-09 19:38:44

标签: ios react-native watchman

我试图在Mac上运行一个基本的反应原生项目(教程),但是当运行模拟器或部署到设备时,我得到了这个:

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

我尝试从git brew install --HEAD watchman重新安装守望者,但它没有帮助。

有什么建议吗?

由于

2 个答案:

答案 0 :(得分:2)

目录存储在错误的位置,因此将其删除:

rm ~/Library/LaunchAgents

创建目录:

mkdir -p ~/Library/LaunchAgents

比安全地重新启用mysql启动:

ln -sfv /usr/local/opt/mysql/*.plist ~/Library/LaunchAgents

答案 1 :(得分:1)

好的,问题是我有一个文件〜/ Library / LaunchAgents指向homebrew.mxcl.postgresql而不是文件夹。 所以我只是将homebrew.mxcl.postgresql移动到临时文件夹,删除了〜/ Library / LaunchAgents,创建了一个〜/ Library / LaunchAgents文件夹并将homebrew.mxcl.postgresql复制到其中。

com.github.facebook.watchman.plist是我第一次创建守望者。

相关问题