搜尋

首頁  >  問答  >  主體

ruby - 無法讀取 gem

Could not read gem at /Library/Ruby/Gems/2.0.0/ruby/2.0.0/cache/will_paginate-3.0.7.gem

Bundle Install 提示如下:

Bundler::GemspecError: Could not read gem at /Library/Ruby/Gems/2.0.0/ruby/2.0.0/cache/will_paginate-3.0.7.gem. It may be corrupted.
An error occurred while installing will_paginate (3.0.7), and Bundler
cannot continue.
Make sure that gem install will_paginate -v '3.0.7' succeeds before
bundling.

可是 will_paginate -v '3.0.7' 確認安裝成功

前往 /Library/Ruby/Gems/2.0.0/ruby/2.0.0/cache/ 資料夾 , will_paginate 已經存在

請解答?

黄舟黄舟2776 天前629

全部回覆(1)我來回復

  • 大家讲道理

    大家讲道理2017-04-24 09:11:57

    權限問題,需要 bundle install 前加sudo

    回覆
    0
  • 取消回覆