can't activate bcrypt-ruby (~> 3.0.0), already activated bcrypt-ruby-3.1.1. Make sure all dependencies are added to Gemfile

后端 未结 9 2067
不知归路
不知归路 2020-12-03 05:13

I have Rails 4.0.0 app. When I run bundle install command there is no problem. This is my GemFile.

source \'https://rubygems.org\'

# Bundle edge Rails inste         


        
9条回答
  •  天涯浪人
    2020-12-03 05:55

    1. Install both 3.0.1 and 3.1.2 bcrypt version
    2. go to "\Ruby200\lib\ruby\gems\2.0.0\gems\bcrypt-ruby-3.1.2-x86-mingw32\lib"
    3. copy the '2.0' folder
    4. paste into "Ruby200\lib\ruby\gems\2.0.0\gems\bcrypt-ruby-3.0.1-x86-mingw32\lib"
    5. include gem 'bcrypt-ruby' in your Gemfile
    6. bundle install

提交回复
热议问题