罗盘手表ERROR

时间:2017-01-27 05:04:22

标签: ruby sass rubygems compass

我正在尝试在我的静态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)

请帮助!!

1 个答案:

答案 0 :(得分:0)

浏览引用似乎watch命令期望到目录的路径。所以,你的命令应该是:

compass watch sass/stylesheets