ruby – 将OSX更新到10.13后不编译SCSS(macOS High Sierra)

前端之家收集整理的这篇文章主要介绍了ruby – 将OSX更新到10.13后不编译SCSS(macOS High Sierra)前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
考拉版:2.2.0

Error message:
/scss/styles.scss
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/dependency.rb:319:in to_specs’: Could not find ‘sass’ (>= 0) among 15 total gem(s) (Gem::LoadError) Checked in ‘GEM_PATH=/Users/monstercritic/.gem/ruby/2.3.0:/Library/Ruby/Gems/2.3.0:/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/gems/2.3.0′,executegem envfor more information from /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/dependency.rb:328:into_spec’
from /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_gem.rb:65:in gem’ from /Applications/Koala.app/Contents/Resources/app.nw/bin/sass:17:in

解决方法

第1步:打开终端&运行此代码(此代码用于安装自制程序)
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

第2步:运行以下代码

sudo gem uninstall sass
sudo gem install sass

DONE

猜你在找的Ruby相关文章