Sass --compass --watch错误:无法加载指南针 [英] Sass --compass --watch Error: Cannot load compass

查看:1150
本文介绍了Sass --compass --watch错误:无法加载指南针的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用sass和指南针,并尝试使用新的sourcemap功能,因为Chrome 27需要sourcemap的新方法在chrome控制台面板中显示实际的sass文件和行号。

I am working with sass and compass and trying to use the new sourcemap feature as Chrome 27 requires the new method of sourcemap to show the actual sass files and line numbers in the chrome console panel.

我可以运行以下sass命令 sass --sourcemap --watch style.scss:style.css

I am able to run the following sass command sass --sourcemap --watch style.scss:style.css

但是如果我添加 - compass 参数,如下面的 sass --compass --sourcemap - .scss:style.css

however if I append the --compass argument like the following sass --compass --sourcemap --watch style.scss:style.css

在Windows cmd面板中出现以下错误:ERROR:Can not load compass。

I get the following error in the windows cmd panel: "ERROR: Cannot load compass".

我试过下面的一些方法,显然是在一些人的github问题页面 https://github.com/chriseppstein/compass/issues/1108

I have tried following some of methods that apparently worked for some people on the github issue page https://github.com/chriseppstein/compass/issues/1108

我试过的方法是使用sass 3.3。 0.alpha.177,指南针0.12.2(这每当我尝试并执行指南针gem,这几乎与这个问题相同

The methods I have tried are using the sass 3.3.0.alpha.177 with compass 0.12.2 (this producers an error every time I try and execute the compass gem which is almost identical to this issue Compass watch - cannot load such file -- sass/script/node (LoadError))

目前我的设置如下:


  • sass 3.3.0.alpha.177

  • 罗盘0.13.alpha.4

  • Windows 7

我可以使用带指南针的Sass,同时生成css调试所需的源映射。

Is there a way that I can use Sass with compass and at the same time generate the sourcemaps which are needed for css debugging?

推荐答案

适用于Sass 3.3.0.alpha.149和指南针0.12.2在windows 7上

Works with Sass 3.3.0.alpha.149 and compass 0.12.2 on windows 7

这篇关于Sass --compass --watch错误:无法加载指南针的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆