Installed by mistake using sudo

there are warnings at stackoverflow.com not to use sudo, because it causes permission issues.

I could not bundle install, so I used sudo.

and now I am having issues.
Gem files will remain installed in /Users/saraginsburg/appAcademy/Alpha
Course/ruby-project/vendor/bundle/ruby/2.0.0/gems/byebug-5.0.0 for inspection.
Results logged to /Users/saraginsburg/appAcademy/Alpha
Course/ruby-project/vendor/bundle/ruby/2.0.0/gems/byebug-5.0.0/ext/byebug/gem_make.out

An error occurred while installing byebug (5.0.0), and Bundler cannot
continue.
Make sure that gem install byebug -v '5.0.0' succeeds before bundling.
Saras-MacBook-Pro:ruby-project saraginsburg$ gem install byebug -v '5.0.0’
ERROR: While executing gem … (Gem::FilePermissionError)
You don’t have write permissions for the /Library/Ruby/Gems/2.0.0 directory.
Saras-MacBook-Pro:ruby-project saraginsburg$ gem install byebug
Fetching: byebug-9.0.6.gem (100%)
ERROR: While executing gem … (Gem::FilePermissionError)
You don’t have write permissions for the /Library/Ruby/Gems/2.0.0 directory.
Saras-MacBook-Pro:ruby-project saraginsburg$ gem install bundler
ERROR: While executing gem … (Gem::FilePermissionError)
You don’t have write permissions for the /Library/Ruby/Gems/2.0.0 directory.
Saras-MacBook-Pro:ruby-project saraginsburg$ gem install byebug
ERROR: While executing gem … (Gem::FilePermissionError)
You don’t have write permissions for the /Library/Ruby/Gems/2.0.0 directory.
Saras-MacBook-Pro:ruby-project saraginsburg$

any advise?

See my other reply for you!