fseventsunavailablemacOSfseventsunavailable(此watcher只能在Darwin上使用)安装文件监控清除本地原装watchmannpmr-gwatchmanIntelMAC安装brewinstallwatchmanM1芯片安装arch-arm64brewinstallwatchman如果失败也可以使用以下命令官网/bin/bash-c"$(curl-fsSLhttps://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"安装过程中出现如下错误Error:Failurewhileexecuting;`tar--extract--no-same-owner--file/Users/xxxx/Library/Caches/Homebrew/downloads/f839b337f0ac1b367e2bdd72123940432a73834db77556858cefb671c2471aba--brotli-1.0.9.big_sur.bottle.tar.gz--3-目录/private/6-5w61ky`以1退出。这是输出:tar:打开存档时出错:无法打开'/Users/xxxx/Library/Caches/Homebrew/downloads/f839b337f0ac1b367e2bdd72123940432a73834db77556858cefb671c2471aba--brotli.surbig_9tar.gz'如果使用bash终端,请替换homebrew-bottlesvim~/.bash_profile添加配置exportHOMEBREW_BOTTLE_DOMAIN=https://mirrors.ustc.edu.cn/homebrew-bottlessource~/.bash_profile#if使用zshvim~/.zshrc#添加配置exportHOMEBREW_BOTTLE_DOMAIN=https://mirrors.ustc.edu.cn/homebrew-bottlessource~/.zshrc#配置完成后,重新执行brewinstallwatchmancloneHomebrew失败还有另一种情况brewinstallwatchman是cloneHomebrew,可以打开githubhttps://github.com/Homebrew手动进入目录clone相关依赖包#找到自己本地的相关目录地址,进入cd/usr/local/Homebrew/Library/Taps/homebrew#clonefortwogitclonehttps://github.com/Homebrew/homebrew-caskgitclonehttps://github.com/Homebrew/homebrew-core.git全局安装fseventsyarnglobaladdfseventsbrewlink报错时出现意外错误brewlinkstep公式已构建,但未符号链接到/usr/localPermissiondenied@dir_s_mkdir-/usr/local/Frameworks更改文件权限sudochown-R$(whoami):admin/usr/local/*
