0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

「middleman-ogp」gemインストールできない

Posted at

備忘録

middleman-ogp を gemfile に追加、bundle install

# 特定(4.1.7)のバージョンをインストール
gem 'middleman', '4.1.7'

gem 'middleman-core'

gem 'middleman-livereload'

# 4.0.0以上
gem 'middleman-compass', '>= 4.0.0'

# 後ろに何もつけてない時は、最新のものという意味
gem 'middleman-ogp'

gem "slim"

# ↓ 動かなくなったのでコメントアウト
# gem 'middleman-deploy'

# 使っていないのでコメントアウト
# gem "middleman-blog"

gem "builder"

# 3.3.6でマイナーなアップグレードを行う
# 4以上?にはアップグレードされない
gem 'bootstrap-sass', '~> 3.3.6'

で、インストール

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 "middleman-core":
  In snapshot (Gemfile.lock):
    middleman-core (= 4.1.7)

  In Gemfile:
    middleman (= 4.1.7) was resolved to 4.1.7, which depends on
      middleman-core (= 4.1.7)

    middleman-compass (>= 4.0.0) was resolved to 4.0.1, which depends on
      middleman-core (>= 4.0.0)

    middleman-livereload (= 3.4.6) was resolved to 3.4.6, which depends on
      middleman-core (>= 3.3)

    middleman-ogp (= 1.0.0) was resolved to 1.0.0, which depends on
      middleman-core (~> 3.2)

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

ogpは、自分で設定するか、何か他のものを探す

middleman-coreのバージョンを下げるしか対応策がないので、
使わないことにしました。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?