指南针手表错误

compass watch ERROR

我正在尝试在我的静态 HTML 项目中使用 Sass 和 Compass。这就是我所做的:

$ gem install compass
$ cd <myproject>
$ compass install compass

它创建了以下内容:

directory ./sass/
directory ./stylesheets/
   create ./sass/screen.scss 
   create ./sass/print.scss 
   create ./sass/ie.scss 
   create ./stylesheets/screen.css 
   create ./stylesheets/ie.css 
   create ./stylesheets/print.css 

然后,开始看scss compass watch sass:stylesheets,报错:

error sass:stylesheets (/var/lib/gems/2.3.0/gems/sass-3.4.23/lib/sass/plugin/compiler.rb:484:in `read': No such file or directory @ rb_sysopen - /home/pc/test/webproj/sass:stylesheets)

请帮忙!!

浏览参考文献,似乎 watch 命令需要目录路径。所以,你的命令应该是:

compass watch sass/stylesheets