对 Rails 3 中的 rake 错误感到困惑 [英] Confused with rake error in Rails 3

查看:38
本文介绍了对 Rails 3 中的 rake 错误感到困惑的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

菜鸟试图破译以下错误的处理方法:

Noob trying to decipher what to do with the following error:

抽水中止!您已经激活了 rake 0.9.1,但是您的 Gemfile 需要 rake 0.8.7.考虑使用 bundle exec.

rake aborted! You have already activated rake 0.9.1, but your Gemfile requires rake 0.8.7. Consider using bundle exec.

非常感谢任何帮助.

推荐答案

尝试运行 bundle exec rake 而不是 rake.当您的计算机上安装的 rake 版本比 Gemfile(或 Gemfile.lock)中指定的版本更新时,就会发生此错误

Try running bundle exec rake instead of just rake. This error will occur when you have a newer version of rake installed on your computer than the one specified in your Gemfile (or Gemfile.lock)

这篇关于对 Rails 3 中的 rake 错误感到困惑的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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