【问题标题】:There was an error in your Gemfile, and Bundler cannot continue您的 Gemfile 中存在错误,并且 Bundler 无法继续
【发布时间】:2013-01-10 01:37:11
【问题描述】:

所以我正在关注 Michael Hartl 的 Rails 教程,并将我的 Gemfile 更改为如下所示:(只是在运行 Bundle install 后得到“您的 Gemfile 中有错误,并且 Bundler 无法继续。”) .有任何想法吗?谢谢

来源“https://rubygems.org” 宝石'导轨','3.2.8' # 捆绑边缘 Rails: # gem 'rails', :git => 'git://github.com/rails/rails.git' #gem 'sqlite3' 组:开发做 宝石'sqlite3','1.3.5' # 宝石仅用于资产,不是必需的 # 默认在生产环境中。 组:资产做 gem 'sass-rails', '~> 3.2.4' 宝石'咖啡轨','〜> 3.2.2' # 有关更多支持的运行时,请参阅 https://github.com/sstephenson/execjs#readme # gem 'therubyracer', :platforms => :ruby gem 'uglifier', '>= 1.2.3' 结尾 宝石'jquery-rails','2.0.0'

【问题讨论】:

    标签: ruby-on-rails file gem bundle


    【解决方案1】:

    你错过了一个结尾:

    #gem 'sqlite3' 组:开发做 宝石'sqlite3','1.3.5'

    【讨论】:

    • 谢谢!这帮助我解决了这个问题。虽然新的错误消息是“在这台机器上可用的 gems 中找不到 gem 'jquery-rails', '2.0.0'。”
    • @user1975127 这是另一个问题,你为什么不把它作为一个 SO 问题来问,或者最好先检查一下这里是否已经回答了一个小问题?
    • jquery-rails 的 2.0.0 版本从 RubyGems 中撤出;您可以尝试将“2.0.0”更改为较新的版本(当前为“2.2.0”)。
    猜你喜欢
    • 2016-09-30
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-02-18
    • 2016-03-14
    • 2022-01-20
    相关资源
    最近更新 更多