mac升级以后,用koala编译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 16 total gem(s) (Gem::LoadError)
Checked in 'GEM_PATH=/Users/sunling/.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', execute `gem env` for more information
from /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/dependency.rb:328:in `to_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 /Volumes/Koala/Koala.app/Contents/Resources/app.nw/bin/sass:17:in `
'
mac升级到10.13以后,重新下载了koala,再编译scss就报错了
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Hello, this help me resolve the problem for me.
Open Terminal
Install Homebrew: ruby -e "$(curl -fsSL https://raw.githubusercontent...)"
Do not close Terminal, open Mac Appstore and check Update, install all XCode Command Line Tools updates OR in my case, XCode Command Line Tools started install automaticly throught Terminal right after step 2.
Back to Terminal
Install Ruby: brew install rbenv ruby-build
Install SASS gem: sudo gem install -n /usr/local/bin sass
After this steps, everything works fine and I can compilate again with Koala or in Dreamweaver.
我在github上找到解决办法了
第一步:在命令中运行ruby -e "$(curl -fsSL https://raw.githubusercontent...)"
第二步:打开你的xcode进行更新
第三步:命令中运行 brew install rbenv ruby-build
第四步:命令中运行 sudo gem install -n /usr/local/bin sass
完成后koala就能正常编译了