咕噜服务不工作,指南针错误

我的节点开始performance怪异。 所以我删除它,并再次安装。 现在,我不能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的项目。 它在我重新安装节点之前工作。

以下为我固定它; 尝试通过运行更新指南针

 // From the official documentation at http://compass-style.org/install/ gem install compass cd <myproject> compass install compass 

如果你想一起避免使用Ruby和Compass,你可以添加一些libsass,只需要在这里列出一些修改: https : //github.com/yeoman/generator-angular/issues/819#issuecomment-100379175

基本上:

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

2)将“compass”命令replace为链接中的“sass”定义

3)在watcher命令中用'sass'replace'compass'

4)在并发命令中用'sass'replace'compass'

希望它会被添加到发生器作为一个选项从一开始。 希望有所帮助!