当我这样做时,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
成功运行。