Gem Permission Error in Rails App
I have a Rails application and am trying to run
bundle install. Upon doing so, it says that bundler isn't installed. I have a Ruby (Rails) environment setup on Repl.it and Ruby is installed when I run
When I try to run
gem install bundler or do so using the package manager, I receive the following error:
ERROR: While executing gem ... (Gem::FilePermissionError) You don't have write permissions for the /var/lib/gems/2.5.0 directory.
Does anyone know how to resolve this?