简体   繁体   English

Bundler找不到与“ bundler”宝石兼容的版本:在Gemfile中:rails(= 3.0.0)已解析为3.0.0,这取决于捆绑程序(〜> 1.0.0)

[英]Bundler could not find compatible versions for gem “bundler”: In Gemfile: rails (= 3.0.0) was resolved to 3.0.0, which depends on bundler (~> 1.0.0)

I just bought a new MBP and I'm trying to execute a ruby app. 我刚刚购买了一个新的MBP,并且正在尝试执行ruby应用程序。 After I followed this tutorial Install Ruby on Rails 5.0 · macOS Sierra , I'm still having this issue: 在按照本教程进行安装Ruby on Rails 5.0·macOS Sierra之后 ,我仍然遇到此问题:

MBP:test_app $ gem install rails
Successfully installed rails-5.0.1
Parsing documentation for rails-5.0.1
Done installing documentation for rails after 0 seconds
1 gem installed
MBP:test_app $ rails new .
Could not find gem 'rails (= 3.0.0)' in any of the gem sources listed in your Gemfile or available on this machine.
Try running `bundle install`.

Then, I tried: 然后,我尝试:

$ bundle install

And I got the following error: 我得到了以下错误:

Fetching gem metadata from http://rubygems.org/..........
Fetching version metadata from http://rubygems.org/..
Fetching dependency metadata from http://rubygems.org/.
Resolving dependencies...
Bundler could not find compatible versions for gem "bundler":
  In Gemfile:
    rails (= 3.0.0) was resolved to 3.0.0, which depends on
      bundler (~> 1.0.0)

  Current Bundler version:
    bundler (1.13.7)
This Gemfile requires a different version of Bundler.
Perhaps you need to update Bundler by running `gem install bundler`?

Could not find gem 'bundler (~> 1.0.0)', which is required by gem 'rails (=
3.0.0)', in any of the sources.

I guess I've already tried everything; 我想我已经尝试了一切; installed bundler 1.0.0, reinstalled, deleted gems, removed ruby, rails, rvm, and installed everything again. 安装了捆绑程序1.0.0,重新安装,删除了gem,删除了ruby,rails,rvm,然后再次安装了所有内容。

Please, any advice? 拜托,有什么建议吗?

Solved!! 解决了!!

The problem was solved removing or commenting config.action_view.debug_rjs = true in development.rb file. 解决了问题,在development.rb文件中删除或注释config.action_view.debug_rjs = true

Thanks to everyone! 谢谢大家!

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Bundler 找不到 gem“bundler”的兼容版本: - Bundler could not find compatible versions for gem "bundler": Bundler找不到宝石“ bundler”的兼容版本 - Bundler could not find compatible versions for gem “bundler” Ruby 导轨错误:捆绑器找不到 gem“捆绑器”的兼容版本: - Ruby rails error: Bundler could not find compatible versions for gem "bundler": Bundler找不到与宝石“ rack”兼容的版本:在Gemfile中: - Bundler could not find compatible versions for gem “rack”: In Gemfile: 软件包安装错误Bundler找不到与gem“ actionpack”兼容的版本:在GemFile中:irwi被解析为0.5.0 - bundle install error Bundler could not find compatible versions for gem “actionpack”: In GemFile: irwi was resolved to 0.5.0 Bundler找不到与gem“ rails”兼容的版本:在快照(Gemfile.lock)中:rails(= 4.2.7.1) - Bundler could not find compatible versions for gem “rails”: In snapshot (Gemfile.lock): rails (= 4.2.7.1) Bundler 找不到 gem “rails” 的兼容版本 | 在 Gemfile 中:rails (~> 6.1.0) x64-mingw3 - Bundler could not find compatible versions for gem “rails” | In Gemfile: rails (~> 6.1.0) x64-mingw3 Bundler找不到宝石“ bundler”的兼容版本,问我我拥有的bundler和所需的bundler的不兼容版本 - Bundler could not find compatible versions for gem “bundler” asking me for the incompatible versions of the bundler i have and the bundler required ActiveAdmin with Rails 4:Bundler找不到宝石“ rails”的兼容版本 - ActiveAdmin with Rails 4: Bundler could not find compatible versions for gem “rails” Elastic Beanstalk,Bundler找不到gem“bundler”的兼容版本 - Elastic Beanstalk, Bundler could not find compatible versions for gem “bundler”
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM