

Xcode启动RN报错"`fsevents` unavailable"
source link: https://segmentfault.com/a/1190000041008768
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

fsevents
unavailable
macOS fsevents unavailable (this watcher can only be used on Darwin)
安装文件监听
清除本地原有的watchman npm 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-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失败
还有一种情况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-cask git 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/*
Recommend
-
8
How to Fix the "Video Unavailable" Error on Apple TV+ By Joe Keeley Published 5 hours ago It's so frustrating when you try...
-
24
npm run test getting: “Error: `fsevents` unavailable (this watcher can only be used on Darwin)” CategoriesKev's BlogTags
-
9
通过 Xcode 启动参数测试 App 本地化 Jul 23, 2013 以往测试 App 本地化就是通过切换系统语言来做,甚是麻烦,其实可以用 Xcode 启动参数强制 App 用指定语言: -AppleLanguages (...
-
4
5 Ways to Fix the "Event Log Service Is Unavailable" Error on Windows By Modisha Tladi Published 11 hours ago
-
8
GitHub Action npm i fails when package.json includes fsevents I’ve added a GitHub Action to a project, and when it runs on a push I get this error:...
-
9
【踩坑】Xcode命令行工具报错 2022-10-01 1...
-
9
如何解决报错: "mount point does not exist" 2023-04-04 09:04:18 这个报错是装在点(mount point)的问题,想要安装驱动器的装在点不存在。所以其解决方案就是创建一共安装点,然后再次安装驱动器。
-
5
WordPress"one or more database tables are unavailable. the database may need to be repaired."如何解决? 🔥🆘WordPress网站遇到"一个或多个数据库表不可用。可能需要修复数据库"的问题,要怎么办呢?🤔 https://www.chenweiliang.com/cwl-30372.html...
-
10
Xcode git "invalid data in index" workaround[⦿xcode⦿git]2023-04-01...
-
12
【踩坑】MacOS 通过 Xcode 连接 iPhone 报错 捕捉一只爱折腾的绯鞠
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK