我已经从我的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
这是一个已知问题:https://github.com/sass/sassc-ruby/issues/153
解决方案:
将gem 'sassc', '~> 2.1.0'
添加到您的gemfile。
运行bundle install
这将迫使它使用sassc版本2.1.0,该版本在Rails 6中没有编译问题。