我正在使用Sass,Compass,Guard和Bundler。当我使用config.rb gemfile和guardfile在主题的根目录中的命令行上bundle exec guard
时,它给了我这个输出,但是它没有编译我的sass文件:
C:\wamp\www\fitzindustries\sites\all\themes\fitzindustries>bundle exec guard
Errno::ENOENT on line ["346"] of C: No such file or directory - C:/wamp/www/fitz
industries/sites/all/themes/fitzindustries/.sass-cache/75fcaf1b4852ceb732871195e
41567cc2a7d8997/C%058%092Ruby193%092lib%092ruby%092gems%0921.9.1%092gems%092comp
ass-core-1.0.0%092stylesheets%092compass%092utilities%092general%092_hacks.scssc
20140822-1732-lofyx5.lock
Run with --trace to see the full backtrace
17:30:22 - INFO - Guard is using TerminalTitle to send notifications.
17:30:22 - INFO - LiveReload is waiting for a browser to connect.
17:30:23 - INFO - Guard::Compass is waiting to compile your stylesheets.
17:30:23 - INFO - Guard is now watching at 'C:/wamp/www/fitzindustries/sites/all
/themes/fitzindustries'
.sass-cache文件夹似乎存在问题。我尝试更改此文件夹的权限并删除该文件夹,但它没有帮助。 如何解决此错误?
答案 0 :(得分:1)
我们在Windows计算机上遇到了同样的问题,最后将以下内容添加到config.rb文件中,这使问题消失了:
sass_options = {:cache_location => "path\to\tmp\sass-cache"}
我们没有很多Sass文件可以编译,因此没有关闭为我们关闭缓存的速度问题,但您的milage可能会有所不同!