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

EMFILE: too many open files, watch #180

Open
kovkev opened this issue Nov 29, 2021 · 1 comment
Open

EMFILE: too many open files, watch #180

kovkev opened this issue Nov 29, 2021 · 1 comment

Comments

@kovkev
Copy link

kovkev commented Nov 29, 2021

Hi! I am trying to build a react-native app on XCode. I see the following error.

Note that I am running on M1 with Rosetta (x86_64 architecture). I did the advice I found that is to brew reinstall watchman. I also did sudo launchctl limit maxfiles 65536 unlimited to increase the max open files limit.

warning: the transform cache was reset.
                    Welcome to Metro!
              Fast - Scalable - Integrated


/Users/kevin/pdev/tgkj/penpalling/node_modules/metro-hermes-compiler/src/emhermesc.js:81
          throw ex;
          ^

Error: EMFILE: too many open files, watch
    at FSEvent.FSWatcher._handle.onchange (node:internal/fs/watchers:204:21)
Emitted 'error' event on NodeWatcher instance at:
    at NodeWatcher.checkedEmitError (/Users/kevin/pdev/tgkj/penpalling/node_modules/sane/src/node_watcher.js:143:12)
    at FSWatcher.emit (node:events:390:28)
    at FSEvent.FSWatcher._handle.onchange (node:internal/fs/watchers:210:12) {
  errno: -24,
  syscall: 'watch',
  code: 'EMFILE',
  filename: null
}
Command PhaseScriptExecution failed with a nonzero exit code

How should I resolve this issue?

Thank you,

Kovkev

@kovkev
Copy link
Author

kovkev commented Dec 2, 2021

I did which node. I went to XCode, my app, Build Phases, found Bundle React Native code and images and changed node, to the output of which node

mcmire added a commit to MetaMask/core that referenced this issue Mar 22, 2022
Ganache supposedly supports Node >= v10, but we are getting some
warnings when running the Ganache server in tests:

    Linking failure in asm.js: Unexpected stdlib member
    bigint: Failed to load bindings, pure JS will be used (try npm run rebuild?)

This is an attempt to remove these warnings.

This may cause issues when running `jest --watch`. If this does, run
`brew install watchman`. See:

* <jestjs/jest#9398>
* <amasad/sane#180>
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