我已经使用命令安装了 bcrypt
gem 安装 bcrypt
我可以确认它安装在我的本地和@global gem 文件夹中,并且它是正确的版本“3.1.7”。而且......我在我的项目中添加了以下行:
gem 'bcrypt', '~> 3.1.7'
当我跑 捆绑安装 我明白了这个...
您的捆绑包已完成!
但是,当我发出此命令时:
rails 生成设计:安装
我得到以下...
Could not find bcrypt-3.1.7 in any of the sources
Run `bundle install` to install missing gems.
user-pc:blog user$
我什至跑过:
捆绑 list
我得到了一个已安装包的列表,并且显示了 bcrypt 3.1.7 !!
最佳答案
杀死 spring 服务器对我有用。
$ ps aux | grep spring
46124 0.1 0.2 2479932 17964 ?? Ss 11:19AM 0:00.31 spring app | Boomtownrack | started 33 secs ago | development mode
58978 0.0 0.1 2514736 11696 s002 S 3:30PM 0:00.43 spring server | Boomtownrack | started 12 hours ago
46130 0.0 0.0 2432784 628 s002 S+ 11:19AM 0:00.00 grep spring
$ kill 58978
关于ruby-on-rails - 在任何来源中都找不到 bcrypt-3.1.7,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24525198/