简体   繁体   English

用指南针/ sass创建项目

[英]create project with compass/sass

I'm having a problem getting started with compass/sass. 我开始使用指南针/ sass时遇到了问题。 I eventually managed to install compass, although I had to google around because the instructions on the compass website didn't work for me. 我最终设法安装指南针,虽然我不得不谷歌,因为指南针网站上的说明不适合我。 Next step was to create a project. 下一步是创建一个项目。 I thought this would be simple enough by typing: 键入以下内容我认为这很简单:

$ compass create path/to/project --using blueprint/basic --sass-dir=sass --css-dir=css

Unfortunately, this didn't work. 不幸的是,这不起作用。 The first thing to fail was that it told me that --using was not a recognised command (even though that is exactly what it tells you to type in the compass installation instructions). 失败的第一件事是它告诉我 - 使用不是一个公认的命令(即使这正是它告诉你输入指南针安装说明)。 So, I tried creating the project taking away all three of the additional options. 因此,我尝试创建一个不带所有三个附加选项的项目。 This did create a project, although not in the place I specified. 这确实创建了一个项目,虽然不在我指定的地方。 Rather than placing it in path/to/project it created the files and directories straight into my home folder ie /Users/me/ 与其将其放置在path / to / project中,它不直接将文件和目录创建到我的主文件夹中,即/ Users / me /

I must be doing something wrong, I can't believe that a tool designed to save time and make life easier could be so difficult to get up and running. 我必须做错事,我无法相信一个旨在节省时间和让生活更轻松的工具可能很难启动和运行。 I'm not great at using the command line, but I am able to follow instructions! 我不擅长使用命令行,但我可以按照说明操作!

Any pointers would be appreciated! 任何指针将不胜感激!

听起来您正在运行指南针v0.8,请升级到v0.10,该命令将起作用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM