每当我运行 rake 命令(即rake routes
)时,我都会收到此错误:
You have already activated rake 0.9.2.2, but your Gemfile requires rake 0.9.2. Using bundle exec may solve this.
如果我运行bundle exec rake routes
它可以工作。
我希望能够简单地rake routes
无需运行bundle exec rake routes
.
我查看了其他具有类似错误的问题,并尝试了各种解决方案(如 running bundle update
),但均无济于事。
另外,在我gemfile
指定的gem 'rake', '0.9.2'
有什么建议么?