【问题标题】:not able to create spree rails app无法创建 spree rails 应用程序
【发布时间】:2016-03-17 06:46:59
【问题描述】:

我正在尝试创建一个 rails spree 应用程序。

我正在关注这个official 链接。

当我执行spree install --auto-accept 时,我收到以下错误。

Bundler 找不到 gem "rails" 的兼容版本: 在快照(Gemfile.lock)中: 导轨 (= 4.2.0)

在 Gemfile 中: 导轨 (= 4.2.0)

spree (~> 3.0.8) was resolved to 3.0.8, which depends on
  spree_core (= 3.0.8) was resolved to 3.0.8, which depends on
    rails (~> 4.2.2)

运行 bundle update 将从头开始重建您的快照,使用 只有 Gemfile 中的 gem,这可能会解决冲突。

然后当我运行bundle update 时,我遇到了错误。

Bundler 找不到 gem "rails" 的兼容版本: 在 Gemfile 中: 导轨(= 4.2.0) spree (~> 3.0.8) 被解析为 3.0.8,这取决于 spree_core (= 3.0.8) 被解析为 3.0.8,这取决于 导轨 (~> 4.2.2)

所以我无法解决这个依赖错误。

请帮忙解决。

【问题讨论】:

    标签: ruby-on-rails rubygems spree


    【解决方案1】:

    你是对的,我也有同样的问题。文档有点过时了。 请重复安装过程,安装 Rails 版本 4.2.2 而不是 4.2.0:

    gem install rails -v 4.2.2
    宝石安装捆绑器
    宝石安装 spree_cmd
    rails _4.2.2_ new mystore
    光盘我的商店
    大礼包安装--自动接受
    

    我刚刚检查过,它可以工作。

    【讨论】:

    • 哦,是的,它有效。很遗憾我没有早点尝试过。。谢谢
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-04-02
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多