我正在运行sass --watch
将我的css文件处理成scss文件。我不确定它是否有效,但我已导航到终端中的文件夹,并运行以下命令:
~/Documents/Website Development/Kedanco/kedanco-website/assets$ sass --watch sass:css
以下是错误消息:
Ignoring bindex-0.5.0 because its extensions are not built. Try: gem
pristine bindex --version 0.5.0
Ignoring binding_of_caller-0.7.2 because its extensions are not built.
Try: gem pristine binding_of_caller --version 0.7.2
Ignoring byebug-9.1.0 because its extensions are not built. Try: gem pristine byebug --version 9.1.0
Ignoring debug_inspector-0.0.3 because its extensions are not built. Try: gem pristine debug_inspector --version 0.0.3
Ignoring ffi-1.9.18 because its extensions are not built. Try: gem pristine ffi --version 1.9.18
Ignoring json-1.8.6 because its extensions are not built. Try: gem pristine json --version 1.8.6
Ignoring nio4r-2.1.0 because its extensions are not built. Try: gem pristine nio4r --version 2.1.0
Ignoring nokogiri-1.8.0 because its extensions are not built. Try: gem pristine nokogiri --version 1.8.0
Ignoring puma-3.10.0 because its extensions are not built. Try: gem pristine puma --version 3.10.0
Ignoring sqlite3-1.3.13 because its extensions are not built. Try: gem pristine sqlite3 --version 1.3.13
Ignoring therubyracer-0.12.3 because its extensions are not built. Try: gem pristine therubyracer --version 0.12.3
Ignoring websocket-driver-0.6.5 because its extensions are not built. Try: gem pristine websocket-driver --version 0.6.5
/home/kelvin/.rvm/gems/ruby-2.4.1/bin/sass:22:in `<main>': undefined method `activate_bin_path' for Gem:Module (NoMethodError)
from /home/kelvin/.rvm/gems/ruby-2.4.1/bin/ruby_executable_hooks:15:in `eval'
from /home/kelvin/.rvm/gems/ruby-2.4.1/bin/ruby_executable_hooks:15:in `<main>'
我熟悉Ruby&amp; Rails,但我没有在这个网站上使用它,它只是一个普通的静态网站。知道目标文件夹是否已关闭或我是否错误地使用了sass命令?
答案 0 :(得分:0)
sass --watch <input folder>:<output folder>
sass-watch监视目录,当添加/更改/删除输入目录中的scss文件时,这些更改将反映在输出目录中已编译的css文件中。