Grunt Serve错误,运行"指南针:服务器" (罗盘)任务错误:无效选项: - no-relative-assets

时间:2015-01-12 08:53:45

标签: node.js gem sass compass-sass

我发布了一个使用Yo创建的项目,是一个angularJS / HTML5应用程序。使用GitHub进行分发时,所有用户都可以设置并运行应用程序。但是有一个用户遇到以下错误,我自己从未见过或经历过这个问题,但我需要帮助解决这个问题:

Warning: Running "compass:server" (compass) task
Error: invalid option: --no-relative-assets

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

Warning: Running "compass:server" (compass) task Error: invalid option: --no-relative-assets

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

我使用npm install重新安装了节点模块并检查了Mac上的sass和指南针版本,我得到了以下内容:

$ sass -v

Sass 3.4.9 (Selective Steve)

$ compass -v

Compass 1.0.1 (Polaris)
Copyright (c) 2008-2015 Chris Eppstein
Released under the MIT License.
Compass is charityware.
Please make a tax deductable donation for a worthy cause: http://umdf.org/compass

$ gem install

bigdecimal (1.2.0)
CFPropertyList (2.2.8)
chunky_png (1.3.3)
compass (1.0.1)
compass-core (1.0.1)
compass-import-once (1.0.5)
ffi (1.9.6)
io-console (0.4.2)
json (1.7.7)
libxml-ruby (2.6.0)
minitest (4.3.2)
multi_json (1.10.1)
nokogiri (1.5.6)
psych (2.0.0)
rake (0.9.6)
rb-fsevent (0.9.4)
rb-inotify (0.9.5)
rdoc (4.0.0)
rubygems-update (2.4.5)
sass (3.4.9)
sqlite3 (1.3.7)
test-unit (2.0.0.0)

有谁知道这里可能出现什么问题?我之前从未体验过这一点,我的Compass和Sass版本与我的同事的版本相同。

1 个答案:

答案 0 :(得分:1)

项目文件夹上的简单npm update就可以了!我在这个问题上浪费了几个小时!