-
Notifications
You must be signed in to change notification settings - Fork 24.5k
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
MacOS Sierra Error with EMFILE upon NPM start #10028
Comments
I have the same error.
|
Have you checked the solutions in #9309? |
@Etheryte yes checked it out. Seems to only be a solution for those with brew/watchman installed. |
resolved via: leecade/react-native-practice#21 |
I was checking watchman issues and found out this one: facebook/watchman#358 When running
|
The problem can be solved by reinstalling react-native-cli:
|
@AlexisLeon that didn't work for me. |
This answer(#9309) work to me. I create and eidt new 1. increase max file limt
2. upgrade to watchman 4.6
|
I'd like to add that I've been running the packager without watchman for 3-4 months because React Native's Node packager doesn't depend on watchman. However, after upgrading to macOS Sierra the Node packager started failing with the above errors. Installing the current version of watchman ( |
@Luavis still didn't work, when I execute ./autogen.sh
|
Thanks to @Luavis , I followed his steps, still resulted in failure. |
I reinstall node, watchman, npm and etc, finally everything goes fine! |
|
@gnestor needed to install watchman - thanks! |
@Luavis holy cow after 2-3 hours of searching, setting kern.maxfiles! Never would have got it. Thank you! |
another workaround to facebook/react-native#10028 (comment))
Just FYI, I did not change the kern maxfiles, I only installed watchman.
perhaps there are two separate issues here - the project that I am building is pretty small and simple at the moment. |
If you are still getting this error and are using tmux on MacOS Sierra, try open a new terminal without tmux and run 'watchman version'. After doing that, it was fixed for me within tmux. |
Installing watchman worked for me. |
Same, installed watchman fixed the issue |
This just happened to me after transferring my environment from an old MacBook Pro to a brand new one. Using Watchman 4.7.0 and brew - problem seems to be a permissions issue with the watchman state directory, so running:
did the job. |
@Luavis i install watchman by homebrew thanks!! |
Clearing the builds in android->app->build folder and hitting react-native run-android worked for me. |
Hello. I have tried everything listed above, but I continue to get this error: node[10626] (FSEvents.framework) FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-22) I just upgraded to High Sierra. I had deleted XCode and Android Studio, and then reinstalled both. Any other ideas what I can do. Thank you, |
This is a correct way of increasing limit on max files for Mac OS X Sierra and above https://superuser.com/a/1171028, works for me on a huge repo w/o any issues (and doesn't in case of default limits) |
Actually, what if react-native/nuclide will provide instructions on how to raise limit instead of throwing an error? |
@johnwangel this will help you to fix that error https://facebook.github.io/watchman/docs/install.html |
Thank you @pranky. I tried reinstalling watchman and just about everything else I could think of, to no avail. The thing that worked was to create a new project and port the code into that project - so I guess there was something cached in the old project that I wasn't able to find. |
|
Increasing file limits, installing watchman and reinstalling react-native-cli did not fix this for me. Why is this issue closed? |
just upgraded to Sierra and am running into a problem when i enter NPM start
For background, I am on react-native 0.26 and unfortunately cannot upgrade at the moment. I also do not have brew
My logs show the following when I try NPM start:
The text was updated successfully, but these errors were encountered: