gpt4 book ai didi

ios - react native 错误 : EMFILE: too many open files, watch

转载 作者:行者123 更新时间:2023-12-04 11:47:14 30 4
gpt4 key购买 nike

出现以下错误,而不是 100% 确定原因。当前在 ios 模拟器中运行我的应用程序时遇到此问题
我试过 npm install watchman,但我刚刚看到 npm 包的最新更新,它似乎已经贬值了。

events.js:292
throw er; // Unhandled 'error' event
^

Error: EMFILE: too many open files, watch
at FSEvent.FSWatcher._handle.onchange (internal/fs/watchers.js:127:28)
Emitted 'error' event on NodeWatcher instance at:
at NodeWatcher.checkedEmitError
at FSWatcher.emit (events.js:315:20)
at FSEvent.FSWatcher._handle.onchange (internal/fs/watchers.js:133:12) {
errno: -24,
syscall: 'watch',
code: 'EMFILE',
filename: null
}

最佳答案

这个错误是由守望者引起的。
你应该运行 brew install watchman在终端。
如果 watchman 安装失败,您应该通过以下方式将这些目录的所有权更改为您的用户

sudo chown -R $(whoami) /usr/local/etc/bash_completion.d /usr/local/lib/pkgconfig /usr/local/var/log
请参阅终端中的提示。
最后你运行 brew install watchman .问题应该得到解决。

关于ios - react native 错误 : EMFILE: too many open files, watch ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64232960/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com