{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/react-native/issues/10028","repository_url":"https://api.github.com/repos/facebook/react-native","labels_url":"https://api.github.com/repos/facebook/react-native/issues/10028/labels{/name}","comments_url":"https://api.github.com/repos/facebook/react-native/issues/10028/comments","events_url":"https://api.github.com/repos/facebook/react-native/issues/10028/events","html_url":"https://github.com/facebook/react-native/issues/10028","id":178414220,"number":10028,"title":"MacOS Sierra Error with EMFILE upon NPM start","user":{"login":"mrkhan2","id":16977502,"avatar_url":"https://avatars.githubusercontent.com/u/16977502?v=3","gravatar_id":"","url":"https://api.github.com/users/mrkhan2","html_url":"https://github.com/mrkhan2","followers_url":"https://api.github.com/users/mrkhan2/followers","following_url":"https://api.github.com/users/mrkhan2/following{/other_user}","gists_url":"https://api.github.com/users/mrkhan2/gists{/gist_id}","starred_url":"https://api.github.com/users/mrkhan2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrkhan2/subscriptions","organizations_url":"https://api.github.com/users/mrkhan2/orgs","repos_url":"https://api.github.com/users/mrkhan2/repos","events_url":"https://api.github.com/users/mrkhan2/events{/privacy}","received_events_url":"https://api.github.com/users/mrkhan2/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2016-09-21T17:37:36Z","updated_at":"2016-09-27T03:12:10Z","closed_at":null,"body":" just upgraded to Sierra and am running into a problem when i enter NPM start\r\n\r\nFor background, I am on react-native 0.26 and unfortunately cannot upgrade at the moment. I also do not have brew\r\n\r\nMy logs show the following when I try NPM start:\r\n\r\n```\r\n2016-09-21 12:35 node[1515] (FSEvents.framework) FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-22)\r\n2016-09-21 12:35 node[1515] (FSEvents.framework) FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-22)\r\n2016-09-21 12:35 node[1515] (FSEvents.framework) FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-22)\r\n2016-09-21 12:35 node[1515] (FSEvents.framework) FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-22)\r\n2016-09-21 12:35 node[1515] (FSEvents.framework) FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-22)\r\n2016-09-21 12:35 node[1515] (FSEvents.framework) FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-22)\r\n2016-09-21 12:35 node[1515] (FSEvents.framework) FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-22)\r\n2016-09-21 12:35 node[1515] (FSEvents.framework) FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-22)\r\n2016-09-21 12:35 node[1515] (FSEvents.framework) FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-22)\r\n2016-09-21 12:35 node[1515] (FSEvents.framework) FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-22)\r\n2016-09-21 12:35 node[1515] (FSEvents.framework) FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-22)\r\n2016-09-21 12:35 node[1515] (FSEvents.framework) FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-22)\r\n\r\n ERROR  Error watching file for changes: EMFILE\r\n{\"code\":\"EMFILE\",\"errno\":\"EMFILE\",\"syscall\":\"Error watching file for changes:\",\"filename\":null}\r\nError: Error watching file for changes: EMFILE\r\n    at exports._errnoException (util.js:953:11)\r\n    at FSEvent.FSWatcher._handle.onchange (fs.js:1400:11)\r\n```"},"comment":{"url":"https://api.github.com/repos/facebook/react-native/issues/comments/249755490","html_url":"https://github.com/facebook/react-native/issues/10028#issuecomment-249755490","issue_url":"https://api.github.com/repos/facebook/react-native/issues/10028","id":249755490,"user":{"login":"Luavis","id":1534596,"avatar_url":"https://avatars.githubusercontent.com/u/1534596?v=3","gravatar_id":"","url":"https://api.github.com/users/Luavis","html_url":"https://github.com/Luavis","followers_url":"https://api.github.com/users/Luavis/followers","following_url":"https://api.github.com/users/Luavis/following{/other_user}","gists_url":"https://api.github.com/users/Luavis/gists{/gist_id}","starred_url":"https://api.github.com/users/Luavis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Luavis/subscriptions","organizations_url":"https://api.github.com/users/Luavis/orgs","repos_url":"https://api.github.com/users/Luavis/repos","events_url":"https://api.github.com/users/Luavis/events{/privacy}","received_events_url":"https://api.github.com/users/Luavis/received_events","type":"User","site_admin":false},"created_at":"2016-09-27T03:12:10Z","updated_at":"2016-09-27T03:12:10Z","body":"This answer(facebook/react-native#9309) work to me. I create and eidt new ```sysctl.conf``` and install watchman through homebrew.\r\n\r\n## 1. increase max file limt\r\n```\r\n# check open file limit\r\nsysctl kern.maxfiles\r\n\r\n# edit sysctl\r\nsudo vim /etc/sysctl.conf\r\n\r\n# add these two lines\r\nkern.maxfiles=10485760\r\nkern.maxfilesperproc=1048576\r\n\r\n# reboot\r\nsudo reboot\r\n\r\n# check new file limit\r\nsysctl kern.maxfiles\r\n```\r\n## 2. upgrade to watchman 4.6\r\n```\r\n# clone repo\r\ngit clone https://github.com/facebook/watchman.git\r\n\r\n# change to master branch\r\ngit checkout -b v4.6.0 v4.6.0\r\n\r\n# run compiler\r\n./autogen.sh\r\n./configure --enable-lenient --without-pcre --with-python\r\nmake\r\nsudo make install\r\n\r\n# check watchman version\r\nwatchman -v\r\n\r\n# result should be 4.6.0\r\n```"}}
{"actor":{"display_login":"Luavis"}}