fsevents unavailable

macOS fsevents unavailable (this watcher can only be used on Darwin)

安装文件监听

革除本地原有的watchmannpm r -g watchman 英特尔MAC 装置brew install watchman M1芯片 装置arch -arm64 brew install watchman  

如果失败还能够应用如下命令 官网

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

装置时又有如下谬误

Error: Failure while executing; `tar --extract --no-same-owner --file /Users/xxxx/Library/Caches/Homebrew/downloads/f839b337f0ac1b367e2bdd72123940432a73834db77556858cefb671c2471aba--brotli-1.0.9.big_sur.bottle.tar.gz --directory /private/tmp/d20210623-7058-5w61ky` exited with 1. Here's the output:tar: Error opening archive: Failed to open '/Users/xxxx/Library/Caches/Homebrew/downloads/f839b337f0ac1b367e2bdd72123940432a73834db77556858cefb671c2471aba--brotli-1.0.9.big_sur.bottle.tar.gz'

替换homebrew-bottles

如果应用的bash终端vim ~/.bash_profile增加配置export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.ustc.edu.cn/homebrew-bottlessource ~/.bash_profile#如果应用的是zshvim ~/.zshrc#增加配置export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.ustc.edu.cn/homebrew-bottlessource ~/.zshrc#配置完从新执行 brew install watchman

clone Homebrew失败

还有一种状况brew install watchman是clone Homebrew那个能够关上GitHub的https://github.com/Homebrew手动进入目录clone相干依赖包

#找到本人本地相干的目录地址 进入cd /usr/local/Homebrew/Library/Taps/homebrew#clone一下两个依赖包即可git clone https://github.com/Homebrew/homebrew-caskgit clone https://github.com/Homebrew/homebrew-core.git

全局装置fsevents

yarn global add fsevents

brew link报错

An unexpected error occurred during the brew link step The formula built, but is not symlinked into /usr/local Permission denied @ dir_s_mkdir - /usr/local/Frameworks

变更文件权限

sudo chown -R $(whoami):admin /usr/local/*