/ / Rake-12.2.1 konnte in keiner der Quellen (Bundler :: GemNotFound) gefunden werden - Ruby-on-Rails, Ruby

Rake-12.2.1 konnte in keiner der Quellen gefunden werden (Bundler :: GemNotFound) - Ruby-on-Rails, Ruby

Nach dem Ausführen der rails g controller Befehl, den ich bekomme, ist mein Fehler:

Rake-12.2.1 konnte in keiner der Quellen gefunden werden (Bundler :: GemNotFound)

/usr/lib/ruby/vendor_ruby/bundler/spec_set.rb:87:in block in materialize": Could not find rake-12.2.1 in any of the sources (Bundler::GemNotFound) from /usr/lib/ruby/vendor_ruby/bundler/spec_set.rb:81:inmap! "von /usr/lib/ruby/vendor_ruby/bundler/spec_set.rb:81:in materialize" from /usr/lib/ruby/vendor_ruby/bundler/definition.rb:159:inAngaben " von /usr/lib/ruby/vendor_ruby/bundler/definition.rb:218:in specs_for" from /usr/lib/ruby/vendor_ruby/bundler/definition.rb:207:in angeforderte_Spezifikationen "von /usr/lib/ruby/vendor_ruby/bundler/runtime.rb:109:in block in definition_method" from /usr/lib/ruby/vendor_ruby/bundler/runtime.rb:21:insetup "aus /usr/lib/ruby/vendor_ruby/bundler.rb:101:in setup" from /usr/lib/ruby/vendor_ruby/bundler/setup.rb:20:in" von /usr/local/lib/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:55:in require" from /usr/local/lib/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:55:in erfordern "von /root/Desktop/blog/vendor/bundle/ruby/2.3.0/gems/spring-2.0.2/lib/spring/commands.rb:33:in <module:Spring>" from /root/Desktop/blog/vendor/bundle/ruby/2.3.0/gems/spring-2.0.2/lib/spring/commands.rb:4:in " von /usr/local/lib/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:55:in require" from /usr/local/lib/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:55:in erfordern "von /root/Desktop/blog/vendor/bundle/ruby/2.3.0/gems/spring-2.0.2/lib/spring/server.rb:9:in <top (required)>" from /usr/local/lib/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:55:in erfordern "von /usr/local/lib/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:55:in require" from /root/Desktop/blog/vendor/bundle/ruby/2.3.0/gems/spring-2.0.2/lib/spring/client/server.rb:9:in Anruf von /root/Desktop/blog/vendor/bundle/ruby/2.3.0/gems/spring-2.0.2/lib/spring/client/command.rb:7:in call" from /root/Desktop/blog/vendor/bundle/ruby/2.3.0/gems/spring-2.0.2/lib/spring/client.rb:30:in wegrennen von /root/Desktop/blog/vendor/bundle/ruby/2.3.0/gems/spring-2.0.2/bin/spring:49:in "

Antworten:

1 für die Antwort № 1

Ich hatte das gleiche Problem. Ich habe es behoben, indem ich eine andere Version von Ruby SDK gewählt habe. In meinem Fall war es die Auswahl von 2.4.2 anstelle von 2.3.3, von der ich glaube, dass sie standardmäßig auf Mac OS installiert ist.