1. 程式人生 > >bundle install There was an error while trying to write to

bundle install There was an error while trying to write to

bundle install
There was an error while trying to write to
/Users/user_name/.bundle/cache/compact_index/rubygems.org.443.29b0360b937aa4d161703e6160654e47/versions.
It is likely that you need to grant write permissions for that path.
第一次使用ruby系列
安裝依賴遇到報錯 沒有許可權 和python的處理方法一樣 -R 代表遞迴對所有子目錄子檔案起作用

sudo chmod -R 777 /Users/you_user_name/.bundle/