node.js - Grunt 服务不工作, compass 错误

标签 node.js compass-sass yeoman yo

我的 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/

相关文章:

css - compass 的柱子没有排水沟?

asp.net - 使用 .NET Core 和 Angular 2/4 的 Web 应用程序的基础层

javascript - 翻转操作数时,将空数组与空对象相加会产生不同的结果

css - 如何重构现有元素以使用 Compass?

javascript - uglify-js 可以删除 require 和 export 语句吗?

gradle - (Robfletcher) compass Gradle -多次执行-无效的Null值

gruntjs - grunt clean 无法删除 ".tmp"文件(EPERM,不允许操作)

node.js - 无法从 angular.js 向express.js 发送 POST

asp.net - 使用 Asp.Net Web Api 实现 Angular 2

node.js - 如何从客户端访问 cookie-session?