炸蝦碎碎念。

[Notes, GNU/Linux, Open Source, Ruby on Rails, Computer Science, Archlinux]

[Rails] Could Not Read Gem 解決方法

bundle install的時候

1
2
3
Bundler::GemspecError: Could not read gem at /home/joshua5201/.rvm/gems/ruby-2.0.0-p247/cache/coffee-script-2.3.0.gem. It may be corrupted.
An error occurred while installing coffee-script (2.3.0), and Bundler cannot continue.
Make sure that `gem install coffee-script -v '2.3.0'` succeeds before bundling.

解決方法是把gem的cache刪掉

1
$ rm ~/.rvm/gems/ruby-2.0.0-p247/cache/[出問題的gem名稱 或乾脆整個資料夾刪]

參考連結

Comments