私がやっていたとき、私はbundle install
得ました:
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
ここからの手順に従って、シムbash_profile
を追加するように更新しました。rbenv
export PATH="$HOME/.rbenv/bin:$PATH"
eval "$(rbenv init -)"
しかし、いくつかの未知の理由で、私は彼らにコメントしてもらいました。コメントを外すと、bundle install
正常に実行できました。