{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/watchman/issues/376","repository_url":"https://api.github.com/repos/facebook/watchman","labels_url":"https://api.github.com/repos/facebook/watchman/issues/376/labels{/name}","comments_url":"https://api.github.com/repos/facebook/watchman/issues/376/comments","events_url":"https://api.github.com/repos/facebook/watchman/issues/376/events","html_url":"https://github.com/facebook/watchman/issues/376","id":183220279,"number":376,"title":"Why does watchman run under \"sudo\" on macOS sierra?","user":{"login":"yangzhichina","id":1477388,"avatar_url":"https://avatars.githubusercontent.com/u/1477388?v=3","gravatar_id":"","url":"https://api.github.com/users/yangzhichina","html_url":"https://github.com/yangzhichina","followers_url":"https://api.github.com/users/yangzhichina/followers","following_url":"https://api.github.com/users/yangzhichina/following{/other_user}","gists_url":"https://api.github.com/users/yangzhichina/gists{/gist_id}","starred_url":"https://api.github.com/users/yangzhichina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yangzhichina/subscriptions","organizations_url":"https://api.github.com/users/yangzhichina/orgs","repos_url":"https://api.github.com/users/yangzhichina/repos","events_url":"https://api.github.com/users/yangzhichina/events{/privacy}","received_events_url":"https://api.github.com/users/yangzhichina/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-15T16:58:09Z","updated_at":"2016-10-15T23:34:14Z","closed_at":null,"body":"I am an user of mac, recently upgraded my mac to macOS sierra? Because I am a newcomer of Ember.js, I installed Homebrew to append extra tools into mac, Watchman is one of them(brew install watchman, without sudo).\r\n\r\nThe whole installation is successful, but I found a wired situation while I was running commands such as \"watchman version\". It was stuck, no any response completely. But if I run it under sudo, everything is fine.\r\n\r\nBecause of this situation, ember-cli doesn't work well. I must run \"sudo ember new xxx\" to create a new project, however the permission of generated files belong to \"root\", not me. I know I can use \"chown\" to change the ownership, but I think something is wrong.\r\n\r\nCould you guys help me out? Thanks.\r\n\r\n(Watchman 4.7 is my currently being used version.)"},"comment":{"url":"https://api.github.com/repos/facebook/watchman/issues/comments/254017620","html_url":"https://github.com/facebook/watchman/issues/376#issuecomment-254017620","issue_url":"https://api.github.com/repos/facebook/watchman/issues/376","id":254017620,"user":{"login":"wez","id":117777,"avatar_url":"https://avatars.githubusercontent.com/u/117777?v=3","gravatar_id":"","url":"https://api.github.com/users/wez","html_url":"https://github.com/wez","followers_url":"https://api.github.com/users/wez/followers","following_url":"https://api.github.com/users/wez/following{/other_user}","gists_url":"https://api.github.com/users/wez/gists{/gist_id}","starred_url":"https://api.github.com/users/wez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wez/subscriptions","organizations_url":"https://api.github.com/users/wez/orgs","repos_url":"https://api.github.com/users/wez/repos","events_url":"https://api.github.com/users/wez/events{/privacy}","received_events_url":"https://api.github.com/users/wez/received_events","type":"User","site_admin":false},"created_at":"2016-10-15T23:34:14Z","updated_at":"2016-10-15T23:34:14Z","body":"You should not use `sudo` to interact with `watchman`.\r\n\r\nIt's not clear what state your system is in now.  Here are some commands that you can try to run to speculatively get things into a reasonable state:\r\n\r\n```\r\nsudo launchctl unload -F ~root/Library/LaunchAgents/com.github.facebook.watchman.plist\r\nlaunchctl unload -F ~/Library/LaunchAgents/com.github.facebook.watchman.plist\r\n```\r\n\r\nAfter running those commands, please share the output from:\r\n\r\n```\r\nps -ef | grep watchman\r\n```\r\n\r\nAnd if there are no watchman processes still running, try:\r\n\r\n```\r\nwatchman version\r\n```\r\n\r\nIf that doesn't work, please collect your logs (https://facebook.github.io/watchman/docs/troubleshooting.html#where-are-the-logs has information on where to find them) and share them here.\r\n\r\n"}}
{"actor":{"display_login":"wez"}}