Error: EMFILE: too many open files, watch
at FSWatcher._handle.onchange (node:internal/fs/watchers:207:21)
Emitted 'error' event on NodeWatcher instance at:
at FSWatcher._checkedEmitError (/Users/mixinju/code/front/AwesomeProject/node_modules/metro-file-map/src/watchers/NodeWatcher.js:82:12)
at FSWatcher.emit (node:events:519:28)
at FSWatcher._handle.onchange (node:internal/fs/watchers:213:12) {
errno: -24,
syscall: 'watch',
code: 'EMFILE',
filename: null
}
请按以下格式提供问题的相关信息。
问题的具体描述
Error: EMFILE: too many open files, watch at FSWatcher._handle.onchange (node:internal/fs/watchers:207:21) Emitted 'error' event on NodeWatcher instance at: at FSWatcher._checkedEmitError (/Users/mixinju/code/front/AwesomeProject/node_modules/metro-file-map/src/watchers/NodeWatcher.js:82:12) at FSWatcher.emit (node:events:519:28) at FSWatcher._handle.onchange (node:internal/fs/watchers:213:12) { errno: -24, syscall: 'watch', code: 'EMFILE', filename: null }
请描述完整的环境/版本信息
MacOS 15.0.1 (24A348) 官网最新版本,两台电脑同样问题
请在命令行的项目目录中运行
npx react-native info
命令,并将其输出结果粘贴到这里。如果问题涉及到第三方包/库/模块,请也将 package.json 的内容粘贴到这里。 System: OS: macOS 15.0.1 CPU: (12) arm64 Apple M2 Pro Memory: 128.09 MB / 16.00 GB Shell: version: "5.9" path: /bin/zsh Binaries: Node: version: 20.18.0 path: /opt/homebrew/opt/node@20/bin/node Yarn: version: 1.22.22 path: /opt/homebrew/bin/yarn npm: version: 10.8.2 path: /opt/homebrew/opt/node@20/bin/npm Watchman: version: 2024.11.11.00 path: /opt/homebrew/bin/watchman Managers: CocoaPods: Not Found SDKs: iOS SDK: Platforms:
预期结果
请描述你觉得代码正常运行的情况应该是什么样子。
如果问题比较模糊,没有具体方案,那么请具体描述你想要实现什么功能。