我试图将middleman-cloudfront
gem添加到我的中间人项目中,但是出现了以下错误。大多数宝石需要>= 4.0
版本的middleman-core
版本,但middleman-cloudfront
需要~> 3.0
版本。
我该如何解决这个问题?
Bundler could not find compatible versions for gem "middleman-core":
In Gemfile:
middleman (>= 4.0.0) was resolved to 4.0.0, which depends on
middleman-core (= 4.0.0)
middleman-cloudfront (~> 0.2.1) was resolved to 0.2.1, which depends on
middleman-core (~> 3.0)
middleman-google-analytics (>= 2.1.1, ~> 2.1) was resolved to 2.1.1, which depends on
middleman-core (>= 3.4)
middleman-s3_sync (>= 4.0.3, ~> 4.0) was resolved to 4.0.3, which depends on
middleman-core (>= 4.0.0)
middleman-s3_sync (>= 4.0.3, ~> 4.0) was resolved to 4.0.3, which depends on
middleman-core (>= 4.0.0)
middleman-sprockets (~> 4.0) was resolved to 4.0.0, which depends on
middleman-core (~> 4.0)
答案 0 :(得分:1)
看起来像support for v4 has been added to middleman-cloudfront,但尚未作为新版本发布。你可以直接从主人那里拉:
gem 'middleman-cloudfront', github: 'andrusha/middleman-cloudfront'