Sunday, May 19, 2024
 Popular · Latest · Hot · Upcoming
177
rated 0 times [  184] [ 7]  / answers: 1 / hits: 14117  / 11 Years ago, fri, november 29, 2013, 12:00:00

I am running the following:



PS D:app> karma run


It shows the error:



[2013-11-29 17:39:54.297] [DEBUG] config - Loading config D:appkarma.conf.js
There is no server listening on port 9876


How do I fix this?


More From » node.js

 Answers
14

They changed the delivery model for Karma recently



To install Karma itself, as you have already done:



npm install karma -g


But then you need to install drivers for testing frameworks. For example for QUnit



npm install karma-qunit --save-dev


Next you have to install launchers for the different browsers. For example Chrome and IE



npm install karma-ie-launcher --save-dev
npm install karma-chrome-launcher --save-dev


And now you should be good to go.



Now simply launch karma by using the start command with the config file as an input



karma start path/to/tests/karma.conf.js 

[#49986] Friday, September 2, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
kinsley

Total Points: 352
Total Questions: 84
Total Answers: 94

Location: Denmark
Member since Tue, Jul 19, 2022
2 Years ago
;