我在使用Mac OS X Mavericks上的终端让Sass在我的Macbook Pro上工作时遇到了问题.我正在进行全新的清洁安装; 重新格式化我的硬盘,加载了Mavericks,我首先进入命令行进行设置.
我做了sudo gem install sass,然后在我的桌面上创建了两个文件,test.css和test.scss.然后,当我尝试观看文件时,我收到一个错误:
$ sass --watch desktop/test.scss:desktop/test.css
>>> Sass is watching for changes. Press Ctrl-C to stop.
LoadError: cannot load such file -- rb-fsevent
Use --trace for backtrace.
$
Run Code Online (Sandbox Code Playgroud)
我不知道发生了什么或如何解决这个问题,尝试搜索但没有找到任何与我的问题相关的答案.Sass -v给了我Sass 3.3.2 (Maptastic Maple).
在我的Macbook Pro上更新到Yosemite后,sass --watch不再起作用.我得到以下内容:
>>> Sass is watching for changes. Press Ctrl-C to stop.
Ignoring bigdecimal-1.2.5 because its extensions are not built. Try: gem pristine bigdecimal-1.2.5
Ignoring ffi-1.9.5 because its extensions are not built. Try: gem pristine ffi-1.9.5
Ignoring ffi-1.9.3 because its extensions are not built. Try: gem pristine ffi-1.9.3
Ignoring json-1.8.1 because its extensions are not built. Try: gem pristine json-1.8.1
Ignoring libxml-ruby-2.7.0 because its extensions are not built. Try: gem pristine libxml-ruby-2.7.0
Ignoring nokogiri-1.6.3.1 because its extensions are not …Run Code Online (Sandbox Code Playgroud)