Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

too many open files #911

Open
mixinju opened this issue Nov 18, 2024 · 0 comments
Open

too many open files #911

mixinju opened this issue Nov 18, 2024 · 0 comments

Comments

@mixinju
Copy link

mixinju commented Nov 18, 2024

请按以下格式提供问题的相关信息。

问题的具体描述

  • 如果是安装过程中的问题,请再三确认你有使用稳定的代理工具,且代理工具对命令行有生效(如开启全局模式等等)
  • 请说明具体操作步骤和现象(例如执行什么命令,或者点击哪里,出现了什么异常现象或错误信息)
  • 请尽量配上相关报错截图
    • 如果是 ios 编译报错,请打开 Xcode 运行后对报错截图
    • 如果设备上有红屏报错请直接截图
    • 如果命令行有报错请直接截图
    • 警告(warning)一般不用管
    • 如果设备上看不到报错,请先尝试调试模式
    • 如果是发行版本无法调试,对于安卓设备请使用adb logcat 命令来捕获日志并粘贴到这里。iOS 设备查看日志的一些方法
  • 请尽量配上相关代码截图
    node:events:497
    throw er; // Unhandled 'error' event
    ^

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
}

image

请描述完整的环境/版本信息

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:
    - DriverKit 24.1
    - iOS 18.1
    - macOS 15.1
    - tvOS 18.1
    - visionOS 2.1
    - watchOS 11.1
    Android SDK: Not Found
    IDEs:
    Android Studio: 2024.2 AI-242.23339.11.2421.12550806
    Xcode:
    version: 16.1/16B40
    path: /usr/bin/xcodebuild
    Languages:
    Java:
    version: 17.0.13
    path: /usr/bin/javac
    Ruby:
    version: 2.6.10
    path: /usr/bin/ruby
    npmPackages:
    "@react-native-community/cli":
    installed: 15.0.1
    wanted: 15.0.1
    react:
    installed: 18.3.1
    wanted: 18.3.1
    react-native:
    installed: 0.76.2
    wanted: 0.76.2
    react-native-macos: Not Found
    npmGlobalPackages:
    "react-native": Not Found
    Android:
    hermesEnabled: true
    newArchEnabled: true
    iOS:
    hermesEnabled: Not found
    newArchEnabled: false

预期结果

  • 请描述你觉得代码正常运行的情况应该是什么样子。
  • 如果问题比较模糊,没有具体方案,那么请具体描述你想要实现什么功能。
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant