Skip to content

rbenv Permissions Error

Martin K edited this page Dec 28, 2019 · 2 revisions

Errors:

ERROR:  While executing gem ... (Gem::FilePermissionError)
You don't have write permissions for the /var/lib/gems/2.5.0 directory

Fix:

You have accidentally installed rbenv using the sudo keyword.

To fix the problem, you simply need to reinstall rbenv without using the sudo keyword.

Clone this wiki locally