When I was doing bundle install
I got:
Following files may not be writable, so sudo is needed:
/Library/Ruby/Gems/2.6.0
/Library/Ruby/Gems/2.6.0/bin
/Library/Ruby/Gems/2.6.0/build_info
/Library/Ruby/Gems/2.6.0/bundler
/Library/Ruby/Gems/2.6.0/cache
/Library/Ruby/Gems/2.6.0/doc
/Library/Ruby/Gems/2.6.0/extensions
/Library/Ruby/Gems/2.6.0/gems
/Library/Ruby/Gems/2.6.0/specifications
Fetching gem metadata from https://rubygems.org/.........
error: cannot open .git/FETCH_HEAD: Permission denied
I had followed the steps from here and updated my bash_profile
to add a rbenv
shim.
export PATH="$HOME/.rbenv/bin:$PATH"
eval "$(rbenv init -)"
But for some unknown reason I had them commented out. Once I uncommented I was able to run bundle install
successfully.