Skip to content

Commit

Permalink
Don't recommend installing gem with sudo
Browse files Browse the repository at this point in the history
_Not_ installing gems using `sudo` has long been considered a best practice.

The original post that popularized this from 10 years has since gone offline, but [it's cached here](https://web.archive.org/web/20101101064608/http://all-thing.net/sudo-gem-install-considered-harmful).  But since everything old is new again, this even came up again in [this week's Ruby Weekly](https://rubyweekly.com/issues/531) just this week (linking to [this new post](https://www.moncefbelyamani.com/why-you-should-never-use-sudo-to-install-ruby-gems/)).

Here are a couple more [classics](https://thoughtbot.com/blog/psa-do-not-use-system-ruby) of the [genre](https://stackoverflow.com/questions/2119064/sudo-gem-install-or-gem-install-and-gem-locations).
  • Loading branch information
tjschuck authored and anakinj committed Dec 15, 2020
1 parent dc946fa commit ef8718b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -26,7 +26,7 @@ If you have further questions related to development or usage, join us: [ruby-jw

### Using Rubygems:
```bash
sudo gem install jwt
gem install jwt
```

### Using Bundler:
Expand Down

0 comments on commit ef8718b

Please sign in to comment.