0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Ruby チュートリアル bcryptエラー

Posted at

こんにちは。Railsチュートリアルの6章でRails Tコマンドを叩いたところ、たくさんのエラーがでました。

Error:
ApplicationHelperTest#test_full_title_helper:
LoadError: cannot load such file -- bcrypt

エラー文のほとんどがこれでした。

gem uninstall bcrypt を実行
gem uninstall bcrypt-ruby を実行
gem install bcrypt --platform=rubyを実行
Gemfileにgem 'bcrypt', '~> 3.1.11'を記載
bundle installを実行

ネットには対処法が落ちてたのでこの方法を試したのですが、最初のgem install bcryptで引っかかってしまいます。

このような表示が出てきます

You have requested to uninstall the gem:
bcrypt-3.1.12

devise-4.6.1 depends on bcrypt (~> 3.0)
If you remove this gem, these dependencies will not be met.
Continue with Uninstall? [yN]

ここでエンターを押すと

You have requested to uninstall the gem:
bcrypt-3.1.12

devise-4.6.1 depends on bcrypt (~> 3.0)
If you remove this gem, these dependencies will not be met.
Continue with Uninstall? [yN]
ERROR: While executing gem ... (Gem::DependencyRemovalException)
Uninstallation aborted due to dependent gem(s)

どなたか詳しい方教えてください。

You have requested to uninstall the gem:
bcrypt-3.1.12

devise-4.6.1 depends on bcrypt (~> 3.0)
If you remove this gem, these dependencies will not be met.
Continue with Uninstall? [yN]
ERROR: While executing gem ... (Gem::DependencyRemovalException)
Uninstallation aborted due to dependent gem(s)

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?