gpt4 book ai didi

angularjs - 由于 yeoman mean 中的警告,grunt 服务中止

转载 作者:IT老高 更新时间:2023-10-28 23:19:43 24 4
gpt4 key购买 nike

我正在关注 mean.io 的教程,在其中,我必须安装 yo angular

过了一段时间一切都安装好了,最后我不得不运行 `grunt serve'

然后这个错误/警告来了

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

Ans 当我使用这个命令运行时 grunt serve --force

我得到了所需的页面@htttp://localhost/9000/#/没有任何样式的页面

最佳答案

您需要安装compass .它被包含在 angular yeoman 生成器中的 SASS 使用。

如果你安装了 ruby​​,你可以这样做。

gem install compass

永远不要使用 --force。它并不是真的适用于所有情况,但 grunt 会在每个错误/警告中抛出它,但 fatal error 除外。

关于angularjs - 由于 yeoman mean 中的警告,grunt 服务中止,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31451453/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com