我正在尝试为HTML构建一个SASS文件,但是当我去构建时,我收到以下错误:
/Library/Ruby/Site/2.0.0/rubygems.rb:250:in `find_spec_for_exe': can't find gem sass (>= 0.a) (Gem::GemNotFoundException)
from /Library/Ruby/Site/2.0.0/rubygems.rb:278:in `activate_bin_path'
from /usr/local/bin/sass:22:in `<main>'
[Finished in 0.1s with exit code 1]
[cmd: ['sass', '--update', '/Users/Dexstrum/Desktop/template/style.scss:/Users/Dexstrum/Desktop/template/style.css', '--stop-on-error', '--no-cache']]
[dir: /Users/Dexstrum/Desktop/template]
[path: /usr/bin:/bin:/usr/sbin:/sbin]
我安装了Ruby,RVM和SASS
ruby 2.4.0p0 (2016-12-24 revision 57164) [x86_64-darwin16]
rvm 1.29.1 (latest) by Michal Papis, Piotr Kuczynski, Wayne E. Seguin [https://rvm.io/]
Sass 3.4.23 (Selective Steve)
非常感谢任何帮助。
答案 0 :(得分:0)
我的猜测是安装在错误的地方并且无法找到。首先卸载并重新安装sass。
打开终端,然后输入:
sudo gem uninstall sass
然后输入:
sudo gem install sass
如果没有解决问题,您可能需要卸载ruby,rvm和sass,然后重新安装。您可能会有更多运气使用Homebrew重新安装这些运气。有关详细信息,请参阅Laoumusicarts答案: