やろうとしていること
現在soliduを使ってecサイトの勉強をしています。
教えて欲しいこと
bundle exec rails g spree:install --migrate=false --sample=false --seed=false
このコマンドを実行したいのですが、実行すると、
Could not locate Gemfile or .bundle/ directory
このように表示されてしまいます。これを解決したいです。
gemファイルは存在しています。
rails new
した時にこのようなメッセージが表示されます。
これが原因と考えているのですが、どうすれば対処できるでしょうか?
The dependency tzinfo-data (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x86-mswin32, x64-mingw32, java. To add those platforms to the bundle, run `bundle lock --add-platform x86-mingw32 x86-mswin32 x64-mingw32 java`.
やってみたこと
bundle install,bundle update, gem installを演ってみましたがだめでした。
ご教授お願いします。
DrqYutoが👍を押しています
気になる質問をクリップする
クリップした質問は、後からいつでもMYページで確認できます。
またクリップした質問に回答があった際、通知やメールを受け取ることができます。
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
回答2件
0
自己解決
なんでかわかりませんが、治っていました・・・
投稿2017/04/08 07:36
総合スコア29
0
以下は実施しましたか?
bundle lock --add-platform x86-mingw32 x86-mswin32 x64-mingw32 java
投稿2017/02/16 23:10
総合スコア6621
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
実行しまいしましたら、
このようなエラーが表示されます
Bundler could not find compatible versions for gem "i18n":
In snapshot (Gemfile.lock):
i18n (= 0.8.0)
In Gemfile:
solidus x86-mingw32 was resolved to 1.0.0, which depends on
solidus_core (= 1.0.0) x86-mswin32 was resolved to 1.0.0, which depends on
activemerchant (~> 1.48.0) x86-mswin32 was resolved to 1.48.0, which depends on
i18n (>= 0.6.9)
solidus x86-mingw32 was resolved to 1.0.0, which depends on
solidus_core (= 1.0.0) x86-mswin32 was resolved to 1.0.0, which depends on
activemerchant (~> 1.48.0) x86-mswin32 was resolved to 1.48.0, which depends on
i18n (>= 0.6.9) x86-mingw32
solidus x86-mingw32 was resolved to 1.0.0, which depends on
solidus_core (= 1.0.0) x86-mswin32 was resolved to 1.0.0, which depends on
activemerchant (~> 1.48.0) x86-mswin32 was resolved to 1.48.0, which depends on
i18n (>= 0.6.9) x86-mswin32
solidus x86-mingw32 was resolved to 1.0.0, which depends on
solidus_core (= 1.0.0) x86-mswin32 was resolved to 1.0.0, which depends on
activemerchant (~> 1.48.0) x86-mswin32 was resolved to 1.48.0, which depends on
i18n (>= 0.6.9) x64-mingw32
solidus x86-mingw32 was resolved to 1.0.0, which depends on
solidus_core (= 1.0.0) x86-mswin32 was resolved to 1.0.0, which depends on
activemerchant (~> 1.48.0) x86-mswin32 was resolved to 1.48.0, which depends on
i18n (>= 0.6.9) java
solidus x86-mingw32 was resolved to 1.0.0, which depends on
solidus_core (= 1.0.0) x86-mswin32 was resolved to 1.0.0, which depends on
monetize (~> 1.1) was resolved to 1.1.0, which depends on
money (~> 6.5.0) was resolved to 6.5.0, which depends on
i18n (<= 0.7.0, >= 0.6.4) java
solidus x86-mingw32 was resolved to 1.0.0, which depends on
solidus_core (= 1.0.0) x86-mswin32 was resolved to 1.0.0, which depends on
monetize (~> 1.1) was resolved to 1.1.0, which depends on
money (~> 6.5.0) was resolved to 6.5.0, which depends on
i18n (<= 0.7.0, >= 0.6.4)
solidus x86-mingw32 was resolved to 1.0.0, which depends on
solidus_core (= 1.0.0) x86-mswin32 was resolved to 1.0.0, which depends on
monetize (~> 1.1) was resolved to 1.1.0, which depends on
money (~> 6.5.0) was resolved to 6.5.0, which depends on
i18n (<= 0.7.0, >= 0.6.4) x86-mingw32
solidus x86-mingw32 was resolved to 1.0.0, which depends on
solidus_core (= 1.0.0) x86-mswin32 was resolved to 1.0.0, which depends on
monetize (~> 1.1) was resolved to 1.1.0, which depends on
money (~> 6.5.0) was resolved to 6.5.0, which depends on
i18n (<= 0.7.0, >= 0.6.4) x86-mswin32
solidus x86-mingw32 was resolved to 1.0.0, which depends on
solidus_core (= 1.0.0) x86-mswin32 was resolved to 1.0.0, which depends on
monetize (~> 1.1) was resolved to 1.1.0, which depends on
money (~> 6.5.0) was resolved to 6.5.0, which depends on
i18n (<= 0.7.0, >= 0.6.4) x64-mingw32
rails-i18n was resolved to 5.0.3, which depends on
i18n (~> 0.7) x86-mingw32
rails-i18n was resolved to 5.0.3, which depends on
i18n (~> 0.7) x86-mswin32
rails-i18n was resolved to 5.0.3, which depends on
i18n (~> 0.7) x64-mingw32
rails-i18n was resolved to 5.0.3, which depends on
i18n (~> 0.7) java
rails-i18n was resolved to 5.0.3, which depends on
i18n (~> 0.7)
solidus x86-mingw32 was resolved to 1.0.0, which depends on
solidus_core (= 1.0.0) x86-mswin32 was resolved to 1.0.0, which depends on
ransack (~> 1.6.0) was resolved to 1.6.6, which depends on
i18n java
solidus x86-mingw32 was resolved to 1.0.0, which depends on
solidus_core (= 1.0.0) x86-mswin32 was resolved to 1.0.0, which depends on
ransack (~> 1.6.0) was resolved to 1.6.6, which depends on
i18n
solidus x86-mingw32 was resolved to 1.0.0, which depends on
solidus_core (= 1.0.0) x86-mswin32 was resolved to 1.0.0, which depends on
ransack (~> 1.6.0) was resolved to 1.6.6, which depends on
i18n x86-mingw32
solidus x86-mingw32 was resolved to 1.0.0, which depends on
solidus_core (= 1.0.0) x86-mswin32 was resolved to 1.0.0, which depends on
ransack (~> 1.6.0) was resolved to 1.6.6, which depends on
i18n x86-mswin32
solidus x86-mingw32 was resolved to 1.0.0, which depends on
solidus_core (= 1.0.0) x86-mswin32 was resolved to 1.0.0, which depends on
ransack (~> 1.6.0) was resolved to 1.6.6, which depends on
i18n x64-mingw32
Running `bundle update` will rebuild your snapshot from scratch, using only
the gems in your Gemfile, which may resolve the conflict.
bundle updateをしてみると
Bundler could not find compatible versions for gem "rails":
In Gemfile:
と表示されてしまいます
あなたの回答
tips
太字
斜体
打ち消し線
見出し
引用テキストの挿入
コードの挿入
リンクの挿入
リストの挿入
番号リストの挿入
表の挿入
水平線の挿入
プレビュー
質問の解決につながる回答をしましょう。 サンプルコードなど、より具体的な説明があると質問者の理解の助けになります。 また、読む側のことを考えた、分かりやすい文章を心がけましょう。
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。