“Expo Developer Tools 与 Expo CLI 断开连接。”尝试运行 React Native 项目时

时间:2021-01-16 17:40:28

标签: react-native expo homebrew

一旦我击中 expo start expo 运行了几秒钟,但随后出现以下错误:

Error: EMFILE: too many open files, watch
    at FSEvent.FSWatcher._handle.onchange (internal/fs/watchers.js:178:28)

我已经做了一些研究,人们说我应该brew install wingman。 问题是,当我尝试这样做时,我得到了:

Updating Homebrew...
fatal: Could not resolve HEAD to a revision
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/cask).
==> Updated Casks
Updated 1 cask.

==> Searching for similarly named formulae...
Error: No similarly named formulae found.
Error: No available formula or cask with the name "wingman".
==> Searching for a previously deleted formula (in the last month)...
Error: No previously deleted formula found.
==> Searching taps on GitHub...
Error: No formulae found in taps.

你们知道我如何让它运行吗?

最好的问候

2 个答案:

答案 0 :(得分:8)

我想你可能误读了僚机。尝试重新安装守望者:

$ brew reinstall watchman

信用到期的信用:here's a link to the forum I found this in

答案 1 :(得分:0)

更新您的 Expo CLI。

npm i expo-cli -g