Gem install bundler2

I can’t seem to get the stuff from this page: https://www.aaonline.io/alpha-curriculum/3.0/methods-exercises
working. I either get the error of command not found or “You don’t have write permissions for the /Library/Ruby/Gems/2.3.0 directory.”

I would really appreciate some help with this.

Make sure your $PATH is set correctly