无法编译现有项目,因为Compass找不到它 [英] Unable to compile an existing project because Compass can't find it

查看:144
本文介绍了无法编译现有项目,因为Compass找不到它的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚通过执行以下命令将基础安装在我的应用程序基本目录中:

I just installed the foundation in my application base directory by executing the following command:

compass create myprojectname -r zurb-foundation --using foundation

现在,我打开了sass/_settings.scss文件,并取消了以下注释的第66行的注释:

Now I have open the sass/_settings.scss file and I have un-comment the 66th line that is the following:

$include-html-classes: true;

最后,我尝试通过执行以下命令来编译基础项目以包含html类:

finaly, I try to compile my foundation project in order to include the html classes by executing the following command:

compass compile

但是我在命令提示符下得到以下结果:

but I am getting the following result in my command prompt:

Nothing to compile. If you're trying to starta new project, you have left off the directory argument.
Run "compass -h" to get help.

也基于此页面: http://foundation.zurb.com/old-docs/f3/compass.php 我尝试使用以下命令来编译我的scss代码:

also, based on this page : http://foundation.zurb.com/old-docs/f3/compass.php I try to compile my scss code by using the command:

指南针观看

但是我再次收到与指南针旁边的compile参数相同的消息.

but again I am getting the same message as with compile argument next to compass.

注意:我正在为基础项目创建运行第一个命令的同一目录中执行上述命令.

Note: I am executing the above commands in the same directory I run the first command for the foundation project creationg.

注意:我是指南针,sass和基础框架的新用户.实际上,今天是我第一次使用它们,因此我不是熟练的用户.请对我好一点:)

Note: I am very new user on compass, sass, foundation framework. Actually, today is the first time I am using them, so I am not expirienced user. Please be kind with me :)

有人可以帮我吗?

推荐答案

使用compass create [directory_name]时,Compass在相对于当前目录的./[directory_name]内创建项目(运行compass create而不使用目录名将创建该项目).当前目录中的项目).为了编译或观看Compass项目,您需要执行以下任一操作:

When you use compass create [directory_name], Compass creates your project within ./[directory_name] relative from your current directory (running compass create without the directory name would have created the project in the current directory). In order to compile or watch a Compass project, you need to do either of the following things:

  • 通过compass compile [path_to_config.rb]
  • 告诉您的项目所在的指南针
  • 切换到找到config.rb的目录并运行compass compile
  • Tell Compass where your project is via compass compile [path_to_config.rb]
  • Change to the directory where config.rb is found and run compass compile

或者,您可以将config.rb移至要运行命令的位置.只要确保您编辑了在该文件中配置的目录的路径即可.

Alternately, you could move your config.rb to where you want to run your command. Just make sure you edit the paths to directories configured within said file.

这篇关于无法编译现有项目,因为Compass找不到它的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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