LoginSignup
1
2

More than 5 years have passed since last update.

gem kramdown 1.13.1がbundle installできない

Last updated at Posted at 2017-04-21

middlemanを利用したアプリケーションをローカルで動かすためにgit cloneしてきたが、はまった。

$ bundle install
Bundler::GemspecError: Could not read gem at /Users/opiyopiyo/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/cache/kramdown-1.13.1.gem. It may be corrupted.
An error occurred while installing kramdown (1.13.1), and Bundler cannot continue.
Make sure that `gem install kramdown -v '1.13.1'` succeeds before bundling.

Rubyのバージョンが古いとダメみたいな記事はあったのだが、ruby 2.3.3p222
新しいよね。2.3.3だから。

で困っていたのですが、解決。

$ rm -rf /Users/opiyopiyo/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/cache/kramdown-1.13.1.gem
$ bundle install
.
.
.
Installing kramdown 1.13.1
.
.
Bundle complete!

Bundler::GemspecErrorってエラーの時は、対象のgemファイルを削除してみると良いかも。

以上!

1
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
2