0

バンドル中にエラーが発生したようです! バンドルのインストール後に次のメッセージが表示されるようです

C:\Users\Nir\Desktop\my projects\projectmeal>bundle install
    Fetching gem metadata from https://rubygems.org/............
    Fetching version metadata from https://rubygems.org/...
    Fetching dependency metadata from https://rubygems.org/..
    Resolving dependencies...........................
    Bundler could not find compatible versions for gem "activesupport":
      In snapshot (Gemfile.lock):
        activesupport (= 5.0.0.1)

      In Gemfile:
        carrierwave x86-mingw32 was resolved to 0.11.2, which depends on
          activesupport (>= 3.2.0) x86-mingw32

    easy_rails_money (~> 0.0.8) x86-mingw32 was resolved to 0.0.8, which depends
    on
          activesupport (~> 3.2) x86-mingw32

        elasticsearch-model x86-mingw32 was resolved to 0.1.9, which depends on
          activesupport (> 3) x86-mingw32

        factory_girl_rails x86-mingw32 was resolved to 4.7.0, which depends on
    factory_girl (~> 4.7.0) x86-mingw32 was resolved to 4.7.0, which depends
    on
            activesupport (>= 3.0.0) x86-mingw32

        factory_girl_rails x86-mingw32 was resolved to 4.7.0, which depends on
    factory_girl (~> 4.7.0) x86-mingw32 was resolved to 4.7.0, which depends
    on
            activesupport (>= 3.0.0) x86-mingw32

        rspec-rails x86-mingw32 was resolved to 3.5.2, which depends on
          activesupport (>= 3.0) x86-mingw32

    Running `bundle update` will rebuild your snapshot from scratch, using only
    the gems in your Gemfile, which may resolve the conflict.

rake db:createのようないくつかのレールコマンドを実行しようとすると、ターミナルに次のエラーが表示されます

C:\Users\Nir\Desktop\my projects\projectmeal>rake db:create
Could not find gem 'guard-rspec x86-mingw32' in any of the gem sources listed in
 your Gemfile or available on this machine.
Run `bundle install` to install missing gems.

そしてプロセスは続きます.....

4

1 に答える 1

0

bundle が互換性のある gem バージョンを見つけることができないと言った場合、それはおそらく探す場所がないためです。バージョン番号を指定しています。つまり、gem ごとに特定のバージョンを使用するように強制したり、X よりも優れたバージョンや X よりも劣ったバージョンを使用したりします。

それ以外の :

  gem 'activesupport'

試す:

gem 'activesupport', '3.2.0'
于 2016-12-07T10:06:37.690 に答える