【问题标题】:sass command not workingsass 命令不起作用
【发布时间】:2011-04-14 14:23:07
【问题描述】:

我有一些愚蠢的事情:我用 bundle 安装了 haml 并执行了“bundle install”。 gem 已安装,它位于本地 gem 列表中。然后当我执行“sass --watch style.scss:style.css”时,我得到:“'sass' 不被识别为内部或外部命令”。我在这里做错了什么?感谢您的回复!

【问题讨论】:

    标签: sass


    【解决方案1】:

    要从包中的 gems 执行命令,您可以使用bundle exec。在你的情况下,例如bundle exec sass --watch style.scss:style.css.

    【讨论】:

    • 也为我工作。我希望我们不必使用 bundle exec……不知道为什么。
    【解决方案2】:

    我安装了 sass:

    $ sudo gem install sass
    

    然后你就可以运行了:

    $ sass --watch ftw.scss:ftw.css
    

    【讨论】:

      猜你喜欢
      • 2014-06-21
      • 1970-01-01
      • 1970-01-01
      • 2014-09-28
      • 2023-04-08
      • 2018-11-14
      • 2012-08-27
      • 2014-11-25
      • 2016-12-11
      相关资源
      最近更新 更多