2015-07-16 12 views
9

byłem po tutorial mean.io, aw nim, musiałem zainstalować yo angulargrunt służyć przerwana z powodu ostrzeżeń Yeoman oznaczać

po jakimś czasie wszystko zostało zainstalowane i wreszcie miałem uruchomić `grunt służyć "

wtedy ten błąd/ostrzeżenie przychodzi

[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$ 

Śledziłem ten poradnik https://www.youtube.com/watch?v=OhPFgqHz68o

Ans kiedy biegł z tej współpracy mmand grunt serve --force

mam wymaganą stronę @ htttp: // localhost/9000/#/stronę z bez stylu

Odpowiedz

14

Musisz zainstalować compass. Jest wykorzystywany przez SASS, który jest zawarty w kątowym generatorze yeoman.

Jeśli masz zainstalowany system ruby, możesz to zrobić.

gem install compass 

I nigdy nie używaj --force. To naprawdę nie jest przeznaczone dla wszystkich przypadków, ale chrząknięcie rzuca to za każdy błąd/ostrzeżenie oprócz fatalnych błędów.

+0

Thaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaakzzzzzzzzzzzzz – Mukund

+1

w Ubuntu, nawet po zainstalowaniu Ruby: 'sudo apt-get install ruby-compass' –

+0

' sudo gem install compass' jeśli nie jesteś root/Administrator jak dostaniesz ostrzeżenia, że ​​nie masz uprawnień . –