LoginSignup
0
0

More than 3 years have passed since last update.

Gemfileに gem 'bcrypt' を記入しbundle installでエラーが出たときの対処法

Posted at

エラー内容

ターミナル
You have requested:
  bcrypt = 3.1.12

The bundle currently has bcrypt locked at 3.1.13.
Try running `bundle update bcrypt`

エラーの原因

bcypt の古いバージョンをインストールしていたため発生。
今回の場合、Gemfile.lockではbcyptのバージョンが3.1.12となっていましたが、Gemfileの方は3.1.13でインストールしようとしたため発生したようです。 バージョン違いには気をつけましょう!

対策

Gemfile.lockを削除することで解決できます。
Gemfile.lockbundle installを実行することでGemfile.lockが自動生成されます。

0
0
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
0
0