Heads Up! You're viewing the docs for v0.8, an old version of Karma. v6.4 is the newest.

Installation

Karma runs on Node.js and is available as a node module via NPM.

Requirements #

First, you need to install Node.js. There are installers for both Mac and Windows. On Linux, we recommend using NVM.

Global Installation #

This is the recommended way. It will install Karma into your global node_modules directory and create a symlink to its binary.

$ npm install -g karma

# Start Karma
$ karma start

Local Installation #

A local installation will install Karma into your current directory's node_modules. That allows you to have different versions for different projects.

$ npm install karma

# Start Karma
$ ./node_modules/.bin/karma start