{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/react-native/issues/9309","repository_url":"https://api.github.com/repos/facebook/react-native","labels_url":"https://api.github.com/repos/facebook/react-native/issues/9309/labels{/name}","comments_url":"https://api.github.com/repos/facebook/react-native/issues/9309/comments","events_url":"https://api.github.com/repos/facebook/react-native/issues/9309/events","html_url":"https://github.com/facebook/react-native/issues/9309","id":170126142,"number":9309,"title":"Packager fails on macOS 10.12 Sierra","user":{"login":"goldenice","id":1433851,"avatar_url":"https://avatars.githubusercontent.com/u/1433851?v=3","gravatar_id":"","url":"https://api.github.com/users/goldenice","html_url":"https://github.com/goldenice","followers_url":"https://api.github.com/users/goldenice/followers","following_url":"https://api.github.com/users/goldenice/following{/other_user}","gists_url":"https://api.github.com/users/goldenice/gists{/gist_id}","starred_url":"https://api.github.com/users/goldenice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/goldenice/subscriptions","organizations_url":"https://api.github.com/users/goldenice/orgs","repos_url":"https://api.github.com/users/goldenice/repos","events_url":"https://api.github.com/users/goldenice/events{/privacy}","received_events_url":"https://api.github.com/users/goldenice/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-08-09T09:52:11Z","updated_at":"2016-08-10T18:53:55Z","closed_at":null,"body":"I have upgraded to the macOS Sierra beta yesterday, and the React Native Packager seems to fail. I've tried to reinstall the dependencies, but no use.\r\n\r\nThe output of the packager is this:\r\n```\r\n[11:45:02 AM] <START> Building Dependency Graph\r\n[11:45:02 AM] <START> Crawling File System\r\n[Hot Module Replacement] Server listening on /hot\r\n\r\nReact packager ready.\r\n\r\n2016-08-09 11:45 node[6397] (FSEvents.framework) FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-22)\r\n2016-08-09 11:45 node[6397] (FSEvents.framework) FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-22)\r\n2016-08-09 11:45 node[6397] (FSEvents.framework) FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-22)\r\n ERROR  watch null EMFILE\r\n{\"code\":\"EMFILE\",\"errno\":\"EMFILE\",\"syscall\":\"watch null\",\"filename\":null}\r\nError: watch null EMFILE\r\n    at exports._errnoException (util.js:873:11)\r\n    at FSEvent.FSWatcher._handle.onchange (fs.js:1217:21)\r\n```\r\n\r\nThe only reference to that specific error I have found is [this old issue on the Node 0.10 repo's](https://github.com/nodejs/node-v0.x-archive/issues/5463). I have tried the 'fix' in that topic, namely increasing the open file references limit. That didn't work.\r\n\r\nThe issue occurs on both Node 4.4.7 and 6.3.1, on macOS Sierra 10.12 on a MBP 2015 15\". Does anyone know what is going on here?\r\n"},"comment":{"url":"https://api.github.com/repos/facebook/react-native/issues/comments/238966924","html_url":"https://github.com/facebook/react-native/issues/9309#issuecomment-238966924","issue_url":"https://api.github.com/repos/facebook/react-native/issues/9309","id":238966924,"user":{"login":"mc-lean","id":3037966,"avatar_url":"https://avatars.githubusercontent.com/u/3037966?v=3","gravatar_id":"","url":"https://api.github.com/users/mc-lean","html_url":"https://github.com/mc-lean","followers_url":"https://api.github.com/users/mc-lean/followers","following_url":"https://api.github.com/users/mc-lean/following{/other_user}","gists_url":"https://api.github.com/users/mc-lean/gists{/gist_id}","starred_url":"https://api.github.com/users/mc-lean/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mc-lean/subscriptions","organizations_url":"https://api.github.com/users/mc-lean/orgs","repos_url":"https://api.github.com/users/mc-lean/repos","events_url":"https://api.github.com/users/mc-lean/events{/privacy}","received_events_url":"https://api.github.com/users/mc-lean/received_events","type":"User","site_admin":false},"created_at":"2016-08-10T18:53:55Z","updated_at":"2016-08-10T18:53:55Z","body":"Credit to @passwd for figuring this out\r\n\r\nWe were able to get it to work by increasing the max file limit and moving to watchman v4.6.0\r\n\r\nhere are the steps we followed: \r\n# 1. increase max file limt    \r\n    # check open file limit\r\n    sysctl kern.maxfiles\r\n    \r\n    # edit sysctl\r\n    sudo vim /etc/sysctl.conf\r\n    \r\n    # add these two lines\r\n    kern.maxfiles=10485760\r\n    kern.maxfilesperproc=1048576\r\n    \r\n    # reboot\r\n    sudo reboot\r\n    \r\n    # check new file limit\r\n    sysctl kern.maxfiles\r\n    \r\n    \r\n# 2. upgrade to watchman 4.6\r\n    # clone repo\r\n    git clone https://github.com/facebook/watchman.git\r\n    \r\n    # change to master branch\r\n    git 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\n    make\r\n    sudo make install\r\n    \r\n    # check watchman version\r\n    watchman -v\r\n    \r\n    # result should be 4.6.0\r\n\r\n\r\n"}}
{"actor":{"display_login":"mc-lean"}}