Ask A Question

Notifications

You’re not receiving notifications from this thread.

gem 'devise' error

Sundus Abdullah asked in Rails

Hi All

When try to run "bundle install" after add
gem 'devise', '~> 4.8', '>= 4.8.1' in Gemfile will shown below error

"An error occurred while installing bcrypt (3.1.18), and Bundler cannot continue."

Rails 7.0.4
ruby 3.1.2

Please how can solve it?
Thank you

Reply

When you see an error like this, you need to try installing the gem that won't install and check its specific error message for the next step. Try this, then troubleshoot that error:

gem install bcrypt -v 3.1.18

Your problem might already have a discovered solution. Always check the gem's Issues page in it's GitHub repo:

https://github.com/bcrypt-ruby/bcrypt-ruby/issues

Reply
Join the discussion
Create an account Log in

Want to stay up-to-date with Ruby on Rails?

Join 85,376+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.