Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

grunt karma getting error .... Loading "grunt-karma.js" tasks...ERROR

Loading "grunt-karma.js" tasks...ERROR

TypeError: Cannot read property 'prototype' of undefined Warning: Task "karma" not found. Use --force to continue.

Aborted due to warnings.

I'm experiencing this issue too. I'm using node 7.5.0 and npm 4.1.2.

like image 904
Amarnath S Avatar asked Apr 12 '17 18:04

Amarnath S


2 Answers

I faced a similar problem. The following correction helped me

"grunt-karma": "^0.12.2",
"karma": "^1.6.0",

Read more here

like image 59
Andrei Krasutski Avatar answered Sep 19 '22 15:09

Andrei Krasutski


Doing npm install on karma helped me fix this problem.

like image 30
KanwarG Avatar answered Sep 17 '22 15:09

KanwarG