在RubyMine中运行规范时出现rake版本错误; 我可以手动编辑Gemfile.lock
我开始收到此错误,并想要一种方法来解决它:
You have already activated rake 10.1.1, but your Gemfile requires rake 10.1.0. Using bundle exec may solve this.
我在RubyMine中运行它。 我可以在我的Gemfile.lock中看到它指定10.1.0。 我可以手动将我的Gemfile.lock更新到10.1.1吗?
如果我做:
$gem list .... rake (10.1.1, 10.1.0, 10.0.4, 0.9.2.2)
所以我不确定为什么它不仅仅适用于10.1.0?
这是RubyMine的完整输出:
/Users/jt/.rvm/rubies/ruby-1.9.3-p448/bin/ruby -e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) /Users/jt/.rvm/gems/ruby-1.9.3-p448/bin/rake spec Testing started at 3:15 PM ... rake aborted! You have already activated rake 10.1.1, but your Gemfile requires rake 10.1.0. Using bundle exec may solve this. /Users/jt/.rvm/gems/ruby-1.9.3-p448/gems/bundler-1.3.5/lib/bundler/runtime.rb:33:in `block in setup' /Users/jt/.rvm/gems/ruby-1.9.3-p448/gems/bundler-1.3.5/lib/bundler/runtime.rb:19:in `setup' /Users/jt/.rvm/gems/ruby-1.9.3-p448/gems/bundler-1.3.5/lib/bundler.rb:120:in `setup' /Users/jt/.rvm/gems/ruby-1.9.3-p448/gems/bundler-1.3.5/lib/bundler/setup.rb:17:in `' /Users/jt/repos/app/config/boot.rb:6:in `' /Users/jt/repos/app/config/application.rb:1:in `' /Users/jt/repos/app/Rakefile:5:in `' -e:1:in `load' -e:1:in `' (See full trace by running task with --trace) Process finished with exit code 1
你可以删除你的
Gemfile.lock file
和执行
bundle update
- 在我的gemfile中从Github指定一个gem的分叉版本时,“找不到gem”错误
- 不知道如何在Ubuntu natty上构建rake db:migrate?
- 在能够使用Capistrano进行部署之前,是否需要在我的服务器上手动安装Bundler?
- 由于权限被拒绝,`bundle install`失败了
- 带有@global gem的Ruby / RVM – bundle运行失败并带有`require’:无法加载这样的文件 – bundler(LoadError)
- 捆绑将所选组安装到自定义路径中
- 由于缺少sqlite3 gem,Rails 4.0rc1应用程序未运行
- Gemfile中的环境变量
- Grunt / Bundler不会使用指定的sass版本