Gem::LoadError: 倾斜? [英] Gem::LoadError: Rake?

查看:41
本文介绍了Gem::LoadError: 倾斜?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在本地运行 rake db:migrate 但出现以下错误:

I'm trying to run rake db:migrate locally but I'm getting the below error:

Gem::LoadError: You have already activated rake 10.2.2, but your Gemfile requires rake 10.1.1. Using bundle exec may solve this.

不知道为什么会这样?它不知从何而来.

Not sure why this is happening? It came out of no where.

知道如何解决这个问题吗?

Any idea how to resolve this?

干杯

推荐答案

您可以删除您的 Gemfile.lock.然后运行bundle install,bundler 将使用正确的rake 重新创建更新的Gemfile.lock.

You can delete your Gemfile.lock. Then run bundle install and bundler will recreate updated Gemfile.lock with correct rake.

我就是这样做的,这对我有用.

I just did that and this worked for me.

这篇关于Gem::LoadError: 倾斜?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆