2015-07-16 10 views
9

Stavo seguendo un tutorial su mean.io, e in essa, ho dovuto installare yo angulargrugnito servire interrotta a causa di avvertimenti in Yeoman dire

dopo qualche tempo tutto è stato installato ed infine la ho dovuto correre `grugnito servire '

questo errore/allarme arriva

[email protected]:~/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 
[email protected]:~/MeanApp/client$ 

ho seguito questo tutorial https://www.youtube.com/watch?v=OhPFgqHz68o

Ans quando mi sono imbattuto con questo co mmand grunt serve --force

ho ricevuto la richiesta Page @ htttp: // localhost/9000/#/pagina con stile senza

risposta

14

È necessario installare compass. È usato dal SASS che è incluso nel generatore angolare di yeoman.

Se hai installato Ruby, puoi farlo.

gem install compass 

E non utilizzare mai --force. Non è davvero pensato per tutti i casi, ma grugnisce per ogni errore/avvertimento tranne errori fatali.

+0

Thaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaakzzzzzzzzzzzzz – Mukund

+1

In Ubuntu, nemmeno dopo aver installato Rubino: 'sudo apt-get install ruby-compass' –

+0

' sudo gem install compass' se non sei root/amministratore poichè otterrete avvisi che non hai il permesso . –

Problemi correlati