从github下载后,捆绑包安装无法安装必要的gem

问题描述 投票:-1回答:1

我已经从我的github帐户中克隆了一个存储库,运行bundle install时出现以下错误。我不明白它的原因。 回购已从我的电脑中推送,现在我正在将其克隆到笔记本电脑中

An error occurred while installing sassc (2.2.1), and Bundler cannot continue.
Make sure that `gem install sassc -v '2.2.1' --source 'https://rubygems.org/'` succeeds before bundling.

In Gemfile:
  sass-rails was resolved to 6.0.0, which depends on
    sassc-rails was resolved to 2.1.2, which depends on
      sassc
ruby-on-rails install bundle
1个回答
0
投票

这是一个已知问题:https://github.com/sass/sassc-ruby/issues/153

解决方案:

  1. gem 'sassc', '~> 2.1.0'添加到您的gemfile。

  2. 运行bundle install

这将迫使它使用sassc版本2.1.0,该版本在Rails 6中没有编译问题。

© www.soinside.com 2019 - 2024. All rights reserved.