{"action":"created","issue":{"url":"https://api.github.com/repos/npm/npm/issues/5475","labels_url":"https://api.github.com/repos/npm/npm/issues/5475/labels{/name}","comments_url":"https://api.github.com/repos/npm/npm/issues/5475/comments","events_url":"https://api.github.com/repos/npm/npm/issues/5475/events","html_url":"https://github.com/npm/npm/issues/5475","id":35676953,"number":5475,"title":"npm update -g \"Error: EMFILE, readdir\"","user":{"login":"ryanburnett","id":741858,"avatar_url":"https://avatars.githubusercontent.com/u/741858?v=3","gravatar_id":"","url":"https://api.github.com/users/ryanburnett","html_url":"https://github.com/ryanburnett","followers_url":"https://api.github.com/users/ryanburnett/followers","following_url":"https://api.github.com/users/ryanburnett/following{/other_user}","gists_url":"https://api.github.com/users/ryanburnett/gists{/gist_id}","starred_url":"https://api.github.com/users/ryanburnett/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryanburnett/subscriptions","organizations_url":"https://api.github.com/users/ryanburnett/orgs","repos_url":"https://api.github.com/users/ryanburnett/repos","events_url":"https://api.github.com/users/ryanburnett/events{/privacy}","received_events_url":"https://api.github.com/users/ryanburnett/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":21,"created_at":"2014-06-13T14:38:50Z","updated_at":"2015-12-17T23:09:52Z","closed_at":"2014-07-01T19:14:35Z","body":"When I run `npm update -g npm` I get this error:\r\n\r\n> npm ERR! Error: EMFILE, readdir '/usr/local/lib/node_modules/nodemon/node_modules/update-notifier/node_modules/request'\r\n\r\n[Here's the npm-debug.log](https://gist.github.com/ryanburnett/8d9f1a2fb3861b4099e7).\r\n\r\nThis error also occurs when I `npm update -g bower` and `npm update -g yo`.\r\n\r\nP.S. I'm on OS X 10.9.3 with:\r\n\r\n```\r\nnode -v\r\nv0.10.26\r\nnpm -v\r\n1.4.15\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/npm/npm/issues/comments/165611243","html_url":"https://github.com/npm/npm/issues/5475#issuecomment-165611243","issue_url":"https://api.github.com/repos/npm/npm/issues/5475","id":165611243,"user":{"login":"crowtherdr","id":1266655,"avatar_url":"https://avatars.githubusercontent.com/u/1266655?v=3","gravatar_id":"","url":"https://api.github.com/users/crowtherdr","html_url":"https://github.com/crowtherdr","followers_url":"https://api.github.com/users/crowtherdr/followers","following_url":"https://api.github.com/users/crowtherdr/following{/other_user}","gists_url":"https://api.github.com/users/crowtherdr/gists{/gist_id}","starred_url":"https://api.github.com/users/crowtherdr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crowtherdr/subscriptions","organizations_url":"https://api.github.com/users/crowtherdr/orgs","repos_url":"https://api.github.com/users/crowtherdr/repos","events_url":"https://api.github.com/users/crowtherdr/events{/privacy}","received_events_url":"https://api.github.com/users/crowtherdr/received_events","type":"User","site_admin":false},"created_at":"2015-12-17T23:09:52Z","updated_at":"2015-12-17T23:09:52Z","body":"Thanks so much for the clue (ulimit -n 2048)! Why can't the error just be \"Too many open files, increase the limit with ulimit -n xxxx.\""}}