我正在关注mean.io的教程,在其中,我必须安装yo angular
然后出现此错误/警告
mukund@mukund-ThinkPad-Edge-E431:~/MeanApp/client$ 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
Warning: Command failed: /bin/sh -c compass --version
/bin/sh: 1: compass: not found
Use --force to continue.
Aborted due to warnings.
Execution Time (2015-07-16 10:01:13 UTC)
loading tasks 10ms ▇▇▇▇ 12%
loading grunt-contrib-compass 33ms ▇▇▇▇▇▇▇▇▇▇▇▇▇ 40%
compass:server 38ms ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 46%
Total 82ms Use --force to continue.
Aborted due to warnings.
Execution Time (2015-07-16 10:01:12 UTC)
loading tasks 10ms ▇ 1%
loading grunt-contrib-clean 10ms ▇ 1%
clean:server 9ms ▇ 1%
wiredep:app 185ms ▇▇▇▇▇▇▇▇ 24%
wiredep:test 10ms ▇ 1%
wiredep:sass 12ms ▇ 2%
loading grunt-concurrent 9ms ▇ 1%
concurrent:server 515ms ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 67%
Total 766ms
mukund@mukund-ThinkPad-Edge-E431:~/MeanApp/client$
我遵循了本教程https://www.youtube.com/watch?v=OhPFgqHz68o
当我使用此命令运行时grunt serve --force
我得到了所需的页面@ htttp:// localhost / 9000 /#/ page,没有任何风格
答案 0 :(得分:14)
您需要安装compass。它由SASS使用,它包含在角度yeoman发生器中。
如果您安装了ruby,则可以这样做。
gem install compass
永远不要使用--force
。它并不是真正适用于所有情况,但是除了致命错误之外,grunt会为每个错误/警告抛出它。