Karma: Error: No provider for framework:requirejs

Created on 12 Oct 2013  路  8Comments  路  Source: karma-runner/karma

I according to the karma page write a test with requirejs. But output a error is no provider requirejs.

And I downloaded the Demo and fixed some old version problems. But still output it.

version: node 0.8.7 karma 0.10.2
config: frameworks: ['jasmine', 'requirejs'],

Should I update version or change config?

Or to update the Demo and tell me right,please!

support docs

Most helpful comment

Try installing the provider manually by calling npm install karma-requirejs

All 8 comments

The problem is that the demo is designed for karma 0.8 and a lot about the configuration file changed in 0.10. Please file an issue about this here. For the time being you can simply use [email protected] if you want to use the demo, otherwise take a look at the this page which has the updated version for `0.10?

I'm sure my karma is 0.10.2.

I updated the demo config for 0.10, but the issue still exist.

Try installing the provider manually by calling npm install karma-requirejs

Oh, yes, It's work.
thanks for your patience.

Solved this problem by calling "npm install karma-requirejs"

"npm install karma-requirejs" solved it.

This isn't enough, you also have to npm install requirejs

See here

npm install requirejs karma-requirejs . then add the karma-requirejs in the plugin section of the karma config file

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jhildenbiddle picture jhildenbiddle  路  4Comments

TKTheTechie picture TKTheTechie  路  4Comments

schippie picture schippie  路  5Comments

ebacka picture ebacka  路  3Comments

donaldpipowitch picture donaldpipowitch  路  3Comments