1

fsevents unavailable

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

Installation file monitoring

清除本地原有的watchman
npm r -g watchman 
英特尔MAC 安装
brew install watchman 
M1芯片 安装
arch -arm64 brew install watchman  

If it fails, you can also use the following command official website

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

The following error occurred during installation

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'

Replace homebrew-bottles

如果使用的bash终端
vim ~/.bash_profile
添加配置
export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.ustc.edu.cn/homebrew-bottles
source ~/.bash_profile

#如果使用的是zsh
vim ~/.zshrc
#添加配置
export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.ustc.edu.cn/homebrew-bottles
source ~/.zshrc

#配置完重新执行 brew install watchman

clone Homebrew failed

There is another situation where brew install watchman is clone Homebrew that can open GitHub https://github.com/Homebrew and manually enter the directory clone related dependency package

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

Install fsevents globally

yarn global add fsevents

brew link error

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

Change file permissions

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

兰俊秋雨
5.1k 声望3.5k 粉丝

基于大前端端技术的一些探索反思总结及讨论