/ / grunt serve avorté à cause d'avertissements en moyenne - angularjs, node.js, Ubuntu, gruntjs

grunt servir avorté en raison d'avertissements dans yeoman moyenne - angularjs, node.js, ubuntu, gruntjs

Je suivais un tutoriel sur mean.io, et je devais installer yo angular

après quelque temps, tout était installé et finalement je devais exécuter `grunt serve"

alors cette erreur / avertissement vient

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$

J'ai suivi ce tutoriel https://www.youtube.com/watch?v=OhPFgqHz68o

Ans quand j'ai couru avec cette commande grunt serve --force

J'ai la page requise @ htttp: // localhost / 9000 / # / page sans style

Réponses:

14 pour la réponse № 1

Vous devez installer boussole. Il est utilisé par le SASS qui est inclus dans le générateur angulaire yeoman.

Si vous avez installé Ruby, vous pouvez le faire.

gem install compass

Et ne pas utiliser --force déjà. Ce n'est pas vraiment destiné à tous les cas, mais Grunt le jette pour chaque erreur / avertissement, sauf les erreurs fatales.