使用compass/sass创建项目
我在开始使用 compass/sass 时遇到问题。我最终成功安装了指南针,尽管我不得不用谷歌搜索,因为指南针网站上的说明对我不起作用。 下一步是创建一个项目。我认为通过输入以下内容就足够简单了:
$ compass create path/to/project --using blueprint/basic --sass-dir=sass --css-dir=css
不幸的是,这不起作用。首先失败的是它告诉我 --using 不是一个可识别的命令(尽管这正是它告诉您输入指南针安装说明的命令)。因此,我尝试创建该项目,去掉所有三个附加选项。 这确实创建了一个项目,尽管不在我指定的位置。它没有将其放在 path/to/project 中,而是直接将文件和目录创建到我的主文件夹中,即 /Users/me/
我一定做错了什么,我不敢相信这个工具旨在节省时间并使生活更轻松启动和运行可能会非常困难。我不擅长使用命令行,但我能够按照说明进行操作!
任何指示将不胜感激!
I'm having a problem getting started with compass/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/
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!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
听起来您正在运行的指南针 v0.8,请升级到 v0.10,该命令将起作用。
It sounds like your running compass v0.8, please upgrade to v0.10 and that command will work.