2014-07-18 9 views
7

Ho generato un progetto AngularJS utilizzando Yeoman eseguendoAvviso: attività "karma" non trovata. Utilizzare --force continuare

yo MyProjectName angolare

E poi corse

grugnito

per costruire il progetto. Ma poi la build ottenuto abborted a causa di avvertimenti:

Deans-MacBook-Air:frontend dean$ grunt 
Running "newer:jshint" (newer) task 

Running "newer:jshint:all" (newer) task 

Running "jshint:all" (jshint) task 

✔ No problems 


Running "newer-postrun:jshint:all:1:/Users/dean/Desktop/myProjectName/frontend/node_modules/grunt-newer/.cache" (newer-postrun) task 

Running "newer:jshint:test" (newer) task 
No newer files to process. 
Warning: Task "karma" not found. Use --force to continue. 

Aborted due to warnings. 


Execution Time (2014-07-18 07:37:37 UTC) 
loading tasks     3ms ▇ 3% 
newer:jshint      3ms ▇ 3% 
newer:jshint:all     6ms ▇▇ 6% 
jshint:all      75ms ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 79% 
newer-postrun:...-newer/.cache 1ms ▇ 1% 
newer:jshint:test    5ms ▇▇ 5% 
Total 95ms 
Deans-MacBook-Air:frontend dean$ 

Quindi sì ... ho provato a fare funzionare

npm installare -g generatore-karma

e riavviando il mio terminale dopo è installato ma non ha funzionato. Sto usando un macbook con OSX 10.9.4 fyi.

+1

Hai provato anche npm install -g karma – Dayde

+1

@Dayde - Ho provato che solo ora, non ha funzionato neanche. – Tiwaz89

+0

Quindi forse npm install -g grunt-karma – Dayde

risposta

6
sudo npm install grunt-karma --save-dev 
0

L'unica soluzione per me che il lavoro è:

sudo npm install grunt-karma karma karma-phantomjs-launcher karma-jasmine jasmine-core phantomjs-prebuilt --save-dev 

prova grugnito o: grugnito servono, è un lavoro!

Problemi correlati