{"action":"created","issue":{"url":"https://api.github.com/repos/MrRio/vtop/issues/72","repository_url":"https://api.github.com/repos/MrRio/vtop","labels_url":"https://api.github.com/repos/MrRio/vtop/issues/72/labels{/name}","comments_url":"https://api.github.com/repos/MrRio/vtop/issues/72/comments","events_url":"https://api.github.com/repos/MrRio/vtop/issues/72/events","html_url":"https://github.com/MrRio/vtop/issues/72","id":168474816,"number":72,"title":"Don't use `sudo`","user":{"login":"leo","id":6170607,"avatar_url":"https://avatars.githubusercontent.com/u/6170607?v=3","gravatar_id":"","url":"https://api.github.com/users/leo","html_url":"https://github.com/leo","followers_url":"https://api.github.com/users/leo/followers","following_url":"https://api.github.com/users/leo/following{/other_user}","gists_url":"https://api.github.com/users/leo/gists{/gist_id}","starred_url":"https://api.github.com/users/leo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leo/subscriptions","organizations_url":"https://api.github.com/users/leo/orgs","repos_url":"https://api.github.com/users/leo/repos","events_url":"https://api.github.com/users/leo/events{/privacy}","received_events_url":"https://api.github.com/users/leo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-07-30T16:17:29Z","updated_at":"2016-08-24T01:17:05Z","closed_at":null,"body":"Instead of telling people to use `sudo` under \"How to install\", we should rather tell them to [fix their npm permissions](https://docs.npmjs.com/getting-started/fixing-npm-permissions) instead.\r\n\r\nGlobally installing npm packages using `sudo` is [not considered](https://blog.explosionpills.com/dont-use-sudo-with-npm/) a good practise. 😊 "},"comment":{"url":"https://api.github.com/repos/MrRio/vtop/issues/comments/241930621","html_url":"https://github.com/MrRio/vtop/issues/72#issuecomment-241930621","issue_url":"https://api.github.com/repos/MrRio/vtop/issues/72","id":241930621,"user":{"login":"JohnMHarrisJr","id":2576152,"avatar_url":"https://avatars.githubusercontent.com/u/2576152?v=3","gravatar_id":"","url":"https://api.github.com/users/JohnMHarrisJr","html_url":"https://github.com/JohnMHarrisJr","followers_url":"https://api.github.com/users/JohnMHarrisJr/followers","following_url":"https://api.github.com/users/JohnMHarrisJr/following{/other_user}","gists_url":"https://api.github.com/users/JohnMHarrisJr/gists{/gist_id}","starred_url":"https://api.github.com/users/JohnMHarrisJr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JohnMHarrisJr/subscriptions","organizations_url":"https://api.github.com/users/JohnMHarrisJr/orgs","repos_url":"https://api.github.com/users/JohnMHarrisJr/repos","events_url":"https://api.github.com/users/JohnMHarrisJr/events{/privacy}","received_events_url":"https://api.github.com/users/JohnMHarrisJr/received_events","type":"User","site_admin":false},"created_at":"2016-08-24T01:17:04Z","updated_at":"2016-08-24T01:17:04Z","body":"npm itself may suggest doing that, but that is a horrible\"solution\" and any system administrator worth their salt would tell you to run screaming from anything that suggests that.\n\nOn August 23, 2016 9:07:50 PM EDT, Jannis Redmann <notifications@github.com> wrote:\n>> You *do* need to run as root if you want to put files in the correct\n>location, which is under /usr/lib.\n>\n>The common solution for single-user computers is to `chown`\n>`/usr/lib/node_modules`. This is recommended by npm and others.\n>\n>> `npm` is fine if you want to install in your local node_modules\n>folder, but nothing more.\n>\n>That may be more opinion, but lots of popular projects recommend to\n>install globally (without `sudo`).\n>\n>> […] the node environment installed by the official packages are set\n>up without the correct permissions for this to work.\n>\n>That's why @leo proposed linking to the npm tutorial on how to fix\n>them.\n\n-- \nJohn M. Harris, Jr.\nPGP Key: f2ea233509f192f98464c2e94f8f03c64bb38ffd\n\nSent from my Android device. Please excuse my brevity.\n"}}
{"actor":{"display_login":"JohnMHarrisJr"}}