0

Railsアプリのサーバーを実行できましたが、今日「rails s」と入力すると、次のエラーが発生しました。

    Bundler could not find compatible versions for gem "bcrypt-ruby":
  In snapshot (Gemfile.lock):
    bcrypt-ruby (3.1.5)

  In Gemfile:
    sorcery (>= 0) ruby depends on
      bcrypt-ruby (>= 3.0) ruby

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

「bundle update」を実行すると、さらに別のエラーが発生しました

 An error occurred while installing pg (0.17.1), and Bundler cannot continue.
Make sure that `gem install pg -v '0.17.1'` succeeds before bundling.

次に、次のコマンドを入力してレールをインストールすることにしました

gem install rails --no-ri --no-rdoc

すべてがスムーズに実行されましたが、確認のために「rails --version」を実行すると、ターミナルで次のエラーが表示されました。

    Bundler could not find compatible versions for gem "bcrypt-ruby":
  In snapshot (Gemfile.lock):
    bcrypt-ruby (3.1.5)

  In Gemfile:
    sorcery (>= 0) ruby depends on
      bcrypt-ruby (>= 3.0) ruby

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

私が間違っていることを理解していません。

4

0 に答える 0