我的 Node 开始表现异常。所以我删除它并重新安装它。现在,我不能再运行 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
生成了项目。它在我重新安装 Node 之前有效。
最佳答案
以下为我修复了它;尝试通过运行更新 compass
// From the official documentation at http://compass-style.org/install/
gem install compass
cd <myproject>
compass install compass
关于node.js - Grunt 服务不工作, compass 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28474762/