5

我的节点开始表现得很奇怪。所以我删除它并重新安装它。现在,我不能再矮grunt serve

Pers-MacBook-Air:clientMD perstrom$ grunt serve
Running "serve" task

Running "clean:server" (clean) task
>> 0 paths cleaned.

Running "wiredep:app" (wiredep) task

Running "wiredep:test" (wiredep) task

Running "wiredep:sass" (wiredep) task

Running "concurrent:server" (concurrent) task
    Warning: Running "compass:server" (compass) task
    Error: invalid option: --import-path=./bower_components

    Usage: compass compile [path/to/project] [path/to/project/src/file.sass ...] [options]

    Description:
    compile project at the path specified or the current director if not specified.

我已经用yo angular. 它在我重新安装节点之前工作。

4

2 回答 2

9

以下为我修复了它;尝试通过运行更新指南针

// From the official documentation at http://compass-style.org/install/
gem install compass
cd <myproject>
compass install compass
于 2015-05-05T07:47:42.230 回答
1

如果您想同时避免使用 Ruby 和 Compass,您可以添加 libsass,只需进行一些修改,此处列出:https ://github.com/yeoman/generator-angular/issues/819#issuecomment-100379175

基本上:

1) 安装 grunt-sass:npm install --save-dev grunt-sass

2)用链接中的'sass'定义替换'compass'命令

3) 将 watcher 命令中的 'compass' 替换为 'sass'

4) 将并发命令中的 'compass' 替换为 'sass'

希望它从一开始就作为一个选项添加到生成器中。希望有帮助!

于 2016-05-11T22:45:38.083 回答