问题描述
我已经使用命令安装了bcrypt
$ b $ gem install bcrypt
我可以确认它是安装在我的gem文件夹中的本地和@global,它是正确的版本'3.1.7'。并且...我已将以下行添加到我的项目中:
$ b gem'bcrypt','〜> 3.1.7' p>
当我运行捆绑软件安装时,我得到了这个...
bundle是完整的!
然而,当我发出这个命令时:
rails generate设计:安装
我得到以下...
无法在任何源中找到bcrypt-3.1.7
运行`bundle install`安装缺失的gem。
user-pc:blog user $
我甚至运行过:
捆绑列表
我得到已安装的捆绑软件列表,并且显示了bcrypt 3.1.7! !
我有这个问题,看起来我只需要删除 Gemfile。 lock
文件,然后重新运行 bundle
!
您可能还需要运行 bundle exec rails generate devise:install
但是如果没有 bundle exec
,它可以正常工作。
I have installed bcrypt using the command
gem install bcrypt
I can confirm that it is installed in my gem folder both local and @global and it is the correct version '3.1.7'. And... I have added the following line to my project:
gem 'bcrypt', '~> 3.1.7'
When I run bundle install I get this...
Your bundle is complete!
However when I issue this command:
rails generate devise:install
I get the following...
Could not find bcrypt-3.1.7 in any of the sources
Run `bundle install` to install missing gems.
user-pc:blog user$
I have even run:
bundle list
And I get a list of installed bundles and bcrypt 3.1.7 shows up!!
I had this same problem, it seems all I had to do was delete the Gemfile.lock
file, and then re-run bundle
!
You may also need to run bundle exec rails generate devise:install
but it worked fine for me without the bundle exec
.
这篇关于无法在任何来源找到bcrypt-3.1.7的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!