Saturday, September 8, 2018

How to resolve "jit-grunt: Plugin for the "karma" task not found." when execute grunt test?

  • Run the grunt command "grunt test", error message as shown below is displayed
jit-grunt: Plugin for the "karma" task not found.
If you have installed the plugin already, please setting the static mapping.
See https://github.com/shootaroo/jit-grunt#static-mappings

Warning: Task "karma" failed. Use --force to continue.

Aborted due to warnings.
  • Execute the command below to install karma, the problem will be resolved.
npm install grunt-karma karma karma-phantomjs-launcher 
karma-jasmine jasmine-core phantomjs-prebuilt --save-dev

No comments: