Search code examples
ruby-on-railsrakebundler

Could not find rake-12.1.0


After I restarted nginx I am getting this error out of nowhere.

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

I tried bundle install, reinstalling rake changing the file where gems are installed to and deleting the gemlock file but nothing seems to be working.


Solution

  • I figured it out I had to specify the rvm by using the command rvm use "name of rvm" then run bundle install this installed rake-12.1.0 to the right rvm gemset. Thanks for all the help