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/
继续安装 如果持续出现要求输入密码可以安装提示安装在指定path
bundle install --path vendor/bundle