{"action":"created","issue":{"url":"https://api.github.com/repos/npm/npm/issues/12402","repository_url":"https://api.github.com/repos/npm/npm","labels_url":"https://api.github.com/repos/npm/npm/issues/12402/labels{/name}","comments_url":"https://api.github.com/repos/npm/npm/issues/12402/comments","events_url":"https://api.github.com/repos/npm/npm/issues/12402/events","html_url":"https://github.com/npm/npm/issues/12402","id":149251767,"number":12402,"title":"\"npm ls -g --depth=0\" always very slooooooooow to return data","user":{"login":"faddah","id":398378,"avatar_url":"https://avatars.githubusercontent.com/u/398378?v=3","gravatar_id":"","url":"https://api.github.com/users/faddah","html_url":"https://github.com/faddah","followers_url":"https://api.github.com/users/faddah/followers","following_url":"https://api.github.com/users/faddah/following{/other_user}","gists_url":"https://api.github.com/users/faddah/gists{/gist_id}","starred_url":"https://api.github.com/users/faddah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/faddah/subscriptions","organizations_url":"https://api.github.com/users/faddah/orgs","repos_url":"https://api.github.com/users/faddah/repos","events_url":"https://api.github.com/users/faddah/events{/privacy}","received_events_url":"https://api.github.com/users/faddah/received_events","type":"User","site_admin":false},"labels":[{"id":277175860,"url":"https://api.github.com/repos/npm/npm/labels/performance","name":"performance","color":"0084FF","default":false},{"id":104304843,"url":"https://api.github.com/repos/npm/npm/labels/support","name":"support","color":"000000","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-04-18T19:41:56Z","updated_at":"2016-11-28T18:54:22Z","closed_at":null,"body":"hi all,\n\nfeature request, please.\n\ni've run this with node.js. v4.4.3 & npm 3.8.6, but also have seen it in earlier versions.\n\ni've seen this happen for me on pretty much any machine, but in particular the ones i usually am on is either an iMac from 2010 with a intel i7 2.8 GHz processor chip, 16 GB of RAM and Mac OS X 10.11.4 with all the updates, or a Pine64 A64+ board (quad core ARM64 processor) w/ 2 GB RAM.\n\nwhen you run —\n\n```\n\n$ npm ls -g --depth=0\n\n```\n\n...to see all your installed, global packages, just the top level names, not any underlying tree dependencies (the \"--depth=0\" option), it always return the info _verrrrrrrrrry sloooooooooowly_. as in, i've seen it take 60 seconds or more to return the simple listing of all my npm installed globally. this is true if i have 2 packages installed globally or 25. just takes for-ever to return any info.\n\ni'm wondering why this is so? you would think the globally installed packages, just the top-level names, would be the easiest list to cache and have ready to return on that call.\n\njust my request.\n\nbest,\n\n—  faddah\n     portland, oregon, u.s.a.\n"},"comment":{"url":"https://api.github.com/repos/npm/npm/issues/comments/263359238","html_url":"https://github.com/npm/npm/issues/12402#issuecomment-263359238","issue_url":"https://api.github.com/repos/npm/npm/issues/12402","id":263359238,"user":{"login":"helio-frota","id":6443576,"avatar_url":"https://avatars.githubusercontent.com/u/6443576?v=3","gravatar_id":"","url":"https://api.github.com/users/helio-frota","html_url":"https://github.com/helio-frota","followers_url":"https://api.github.com/users/helio-frota/followers","following_url":"https://api.github.com/users/helio-frota/following{/other_user}","gists_url":"https://api.github.com/users/helio-frota/gists{/gist_id}","starred_url":"https://api.github.com/users/helio-frota/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/helio-frota/subscriptions","organizations_url":"https://api.github.com/users/helio-frota/orgs","repos_url":"https://api.github.com/users/helio-frota/repos","events_url":"https://api.github.com/users/helio-frota/events{/privacy}","received_events_url":"https://api.github.com/users/helio-frota/received_events","type":"User","site_admin":false},"created_at":"2016-11-28T18:54:22Z","updated_at":"2016-11-28T18:54:22Z","body":"Hi, \r\nAny reason to process some bits to show the current npm version, before show the end main information about the global modules installed ?\r\nplease look at second 00:04 of this:\r\nhttps://asciinema.org/a/94389\r\n\r\n"}}
{"actor":{"display_login":"helio-frota"}}