Ruby Errno::C的第[“346”行上的eNot:没有这样的文件或目录-

Ruby Errno::C的第[“346”行上的eNot:没有这样的文件或目录-,ruby,drupal,sass,bundler,guard,Ruby,Drupal,Sass,Bundler,Guard,我用的是Sass,指南针,守卫和捆绑机。当我使用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 -

我用的是Sass,指南针,守卫和捆绑机。当我使用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缓存文件夹似乎有问题。我已尝试更改此文件夹的权限并删除该文件夹,但没有帮助。
如何解决此错误?

我们在Windows计算机上遇到了相同的问题,并最终将以下内容添加到config.rb文件中,从而使问题消失:

sass_options = {:cache_location => "path\to\tmp\sass-cache"}

我们没有太多的Sass文件要编译,因此没有与关闭缓存相关的速度问题,但是您的差异可能会有所不同

config.rb文件是否指向实际的Sass和CSS目录?您使用的是什么版本的Sass?什么版本的指南针?@KatieK Compass 1.0.1 sass 3.4.1#主题资源的位置。http\u path=“/”css\u dir=“styles/css”sass\u dir=“styles/sass”images\u dir=“images”font\u dir=“font”javascripts\u dir=“js”我的所有文件夹都位于主题根目录ecept css和sass文件夹中,这两个文件夹都是样式,例如(root/)style/css和(root/)style/sass