bundle install 시

bundle install 시 "It is likely that you need to grant write permissions for that path." 에러 해결방법

in

개요

image bundle

bundle install 시 아래와 같은 에러가 발생할 때가 있습니다.

$ bundle install
There was an error while trying to write to `/Users/dohyeoneom/.bundle/cache/compact_index/rubygems.org.443.29b0360b937aa4d161703e6160654e47/info-etags`. It is likely that you need to grant write permissions for that path.

Solution

아래와 같이 ~/.bundle 디렉터리 삭제 후 다시 진행하면 정상적으로 진행됩니다.

$ rm -rf ~/.bundle
$ bundle instal

$ bundle install
Fetching gem metadata from https://rubygems.org/............
Resolving dependencies...
Fetching public_suffix 5.0.4
Fetching rouge 4.2.0
Fetching concurrent-ruby 1.2.3