找不到 rake-12.1.0

Could not find rake-12.1.0

在我重新启动 nginx 后,我突然收到这个错误。

Could not find rake-12.1.0 in any of the sources (Bundler::GemNotFound)

我试过 bundle install,重新安装 rake,更改安装 gem 的文件并删除 gemlock 文件,但似乎没有任何效果。

我发现我必须使用命令 rvm use "name of rvm" 然后 运行 bundle install 这个安装的 rake-12.1.0 到正确的 rvm gemset 来指定 rvm。感谢大家的帮助