今天 rails new xxx 的时候,bundle install 等了很久都不行,我就结束了,修改了 Gemfile,中的 source 为 ruby-china。 就出现了一个问题。
There was an error while trying to write to
/home/yirolhao/.bundle/cache/compact_index/ruby.taobao.org.443.07113fbafd9bf5f337f3f6cee4b3a723
. It is likely that you need to grant write permissions for that path.
之后将 source 换回来,还是有问题。
Unfortunately, an unexpected error occurred, and Bundler cannot continue. First, try this link to see if there are any existing issue reports for this error: https://github.com/bundler/bundler/search?q=Permission+denied+%40+dir_s_mkdir+-+%2Fhome%2Fyirolhao%2F.bundle%2Fcache%2Fcompact_index%2Frubygems.org.443.29b0360b937aa4d161703e6160654e47%2Fversions20161210-16855-1ckp38g&type=Issues If there aren't any reports for this error yet, please create copy and paste the report template above into a new issue. Don't forget to anonymize any private data! The new issue form is located at: https://github.com/bundler/bundler/issues/new
这该怎么解决啊?