微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

Expo Developer Tools 断开连接,无法重新安装 watchman

如何解决Expo Developer Tools 断开连接,无法重新安装 watchman

一段时间后(对我的 mac 目前运行 macOS Big Sur 11.4 进行了一些更新)我确实尝试通过运行 npm run start 来简单地启动我的 expo 应用程序,这实际上与运行 {{1} }

这在浏览器和 CLI 中打开了博览会。几秒钟后,expo start错误而断开连接:

expo

在终端窗口中我发现了这个错误

Expo Developer Tools is disconnected from Expo CLI. Use the expo start command to start the CLI again.

请注意,这是一个不同的问题:Expo Developer Tools is disconnected from Expo CLI. Use the expo start command to start the CLI again

经过研究我发现我需要重新安装Error: EMFILE: too many open files,watch at FSEvent.FSWatcher._handle.onchange (internal/fs/watchers.js:178:28)

但是,运行 watchman 给了我警告:

brew reinstall watchman

安装结束时出现新错误

Warning: You are using macOS 11.4.
We do not provide support for this pre-release version.
You will encounter build failures with some formulae.

现在做什么?

解决方法

也许有些步骤不是必需的,但运行它们全部解决了问题:

  • 将 XCode 更新到最新版本(当前:==> Reinstalling watchman Error: Your CLT does not support macOS 11.4. It is either outdated or was modified. Please update your CLT or delete it if no updates are available.
  • 通过运行 12.5.1
  • 删除 /Library/Developer/
  • 运行以下命令再次安装命令行开发者工具:sudo rm -rf /Library/Developer/
    • 点击弹出窗口中的安装按钮,然后同意条款和条件
  • 打开 XCode 并允许安装其他工具
  • 运行sudo xcode-select --install
  • 运行 brew update - 这将最终更新 brew reinstall watchman,并且比之前运行以错误结束的相同命令花费的时间要多得多。

现在我可以正常启动 watchman 并且它不再断开连接了。

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐


Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其他元素将获得点击?
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。)
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbcDriver发生异常。为什么?
这是用Java进行XML解析的最佳库。
Java的PriorityQueue的内置迭代器不会以任何特定顺序遍历数据结构。为什么?
如何在Java中聆听按键时移动图像。
Java“Program to an interface”。这是什么意思?