我正在尝试运行 rake db:migrate
在本地,但我收到以下错误:
Gem::LoadError: You have already activated rake 10.2.2, but your Gemfile requires rake 10.1.1. Using bundle exec may solve this.
不知道为什么会这样?它不知从何而来。
知道如何解决这个问题吗?
干杯
最佳答案
您可以删除您的 Gemfile.lock
.然后运行 bundle install
和 bundler 将重新创建更新的 Gemfile.lock
用正确的 rake 。
我就是这样做的,这对我有用。
关于ruby-on-rails - Gem::LoadError: 倾斜?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22723584/