Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ruby-on-rails/65.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby on rails ROR可以';t fine rake 10.0.4,尽管在供应商/缓存中_Ruby On Rails_Ruby_Gem_Rake_Bundle - Fatal编程技术网

Ruby on rails ROR可以';t fine rake 10.0.4,尽管在供应商/缓存中

Ruby on rails ROR可以';t fine rake 10.0.4,尽管在供应商/缓存中,ruby-on-rails,ruby,gem,rake,bundle,Ruby On Rails,Ruby,Gem,Rake,Bundle,所以这很烦人。当我把 bundle exec rake db:migrate 进入终端时,发生以下错误: Could not find rake-10.0.4 in any of the sources Run `bundle install` to install missing gems. 因此,我使用bundle show rake进行检查,它位于: /rails\u projects/principia\u app/vendor/cache/ruby/1.8/gems/rake-10

所以这很烦人。当我把

bundle exec rake db:migrate
进入终端时,发生以下错误:

Could not find rake-10.0.4 in any of the sources
Run `bundle install` to install missing gems.
因此,我使用
bundle show rake
进行检查,它位于:

/rails\u projects/principia\u app/vendor/cache/ruby/1.8/gems/rake-10.0.4

我尝试删除gemfile.lock并运行
bundle安装--path vendor/cache
,出现了相同的错误

另外,我也尝试过使用gem文件中的gem“rake”和“10.0.4”来实现它,但没有得到相同的结果。我也更新了我所有的宝石


到现在为止我还没有遇到任何问题,不知什么原因,今天发生了什么。有什么想法吗?谢谢

它是否受到
gempec
Gemfile
的约束?您是否更新了您的任何gem?我尝试过使用gem文件中的gem“rake”和“10.0.4”进行更新,但没有相同的结果。我也更新了我所有的gem。尝试
gem安装rake
安装
rake
的最新版本(10.0.4),然后下一步
捆绑更新rake
更新
gem文件。lock
尝试过了。“still get”无法在任何源中找到rake-10.0.4。运行
bundle install
安装缺少的gems。'执行rake db:create时。