我试图在Mac上运行一个基本的react本机项目(教程),但是当运行模拟器或部署到设备上时,我得到了以下信息:
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重新安装看门人,但是没有帮助。
有什么建议吗?
谢谢
发布于 2016-11-09 20:58:19
好的,问题是我有一个文件~/Library/LaunchAgents指向homebrew.mxcl.postgresql而不是文件夹。因此,我将homebrew.mxcl.postgresql移至临时文件夹,删除了~/Library/LaunchAgents,创建了~/Library/LaunchAgents文件夹,并将homebrew.mxcl.postgresql复制到其中。
com.github.facebook.watchman.plist是我第一次运行看守时创建的。
发布于 2019-10-17 06:55:18
目录存储在错误的位置,因此删除它:
rm ~/Library/LaunchAgents创建目录:
mkdir -p ~/Library/LaunchAgents而不是安全地重新启用mysql启动:
ln -sfv /usr/local/opt/mysql/*.plist ~/Library/LaunchAgentshttps://stackoverflow.com/questions/40514691
复制相似问题