ruby-on-rails – 耙子或任何其他耙子命令无法正常工作
发布时间:2020-12-16 20:28:39 所属栏目:百科 来源:网络整理
导读:嗨,我正在做一些编码,并尝试 rake routes 这个错误信息出来了,我不知道该怎么办 rake aborted!Gem::LoadError: You have already activated rake 10.4.2,but your Gemfile requires rake 10.4.0. Prepending `bundle exec` to your command may solve this./
嗨,我正在做一些编码,并尝试
rake routes 这个错误信息出来了,我不知道该怎么办 rake aborted! Gem::LoadError: You have already activated rake 10.4.2,but your Gemfile requires rake 10.4.0. Prepending `bundle exec` to your command may solve this. /home/simplybel/.rvm/gems/ruby-2.1.2@global/gems/bundler-1.7.4/lib/bundler/runtime.rb:34:in `block in setup' /home/simplybel/.rvm/gems/ruby-2.1.2@global/gems/bundler-1.7.4/lib/bundler/runtime.rb:19:in `setup' /home/simplybel/.rvm/gems/ruby-2.1.2@global/gems/bundler-1.7.4/lib/bundler.rb:121:in `setup' /home/simplybel/.rvm/gems/ruby-2.1.2@global/gems/bundler-1.7.4/lib/bundler/setup.rb:7:in `<top (required)>' /home/simplybel/projects/gamification/config/boot.rb:4:in `<top (required)>' /home/simplybel/projects/gamification/config/application.rb:1:in `<top (required)>' /home/simplybel/projects/gamification/Rakefile:4:in `<top (required)>' LoadError: cannot load such file -- bundler/setup /home/simplybel/projects/gamification/config/boot.rb:4:in `<top (required)>' /home/simplybel/projects/gamification/config/application.rb:1:in `<top (required)>' /home/simplybel/projects/gamification/Rakefile:4:in `<top (required)>' (See full trace by running task with --trace) 任何帮助这将真的不胜感激 解决方法
运行命令rails new MyNewProject后,我在旧项目中遇到了这个问题
要修复它的旧项目,我刚刚进入Gemfile.lock文件并搜索耙子.我发现了耙子(10.3.2),并用耙子(10.4.2)代替它,并为它修复. (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- xml – SOAP :: Lite Perl模块发送错误的SOAP信封命名空间
- ruby – Ym4r无法转换为rails3的字符串
- ruby-on-rails-3 – 导致“ArgumentError(转储格式错误)”的
- 【jsoncpp】json_value.cpp : fatal error C1083: 无法打开
- mapper.xml是怎样实现Dao层接口
- SAPUI5内置的AJAX类库对POST请求的处理不提交HTTP HEADERS
- Lucene索引XML文件及单域,多域搜索
- MVC上的jsonp扩展,解决跨域访问问题
- Cocos2dX通过Java服务器向Unity传输数据四
- 我可以在ruby中复制PHP的AES加密的确切行为吗?