Page tree

Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.


Installing Karma

First, make sure that Node.js is installed on your computer.

Install Karma using npm:

  • Locally

The recommended approach is to install Karma (and all the plugins your project needs) locally in the project's directory.

Use WebStorm’ built-in npm ( Image Removed on the toolbar or in Settings | JavaScript | Node.js and NPM) search and install Karma for your project.


Code Block
npm install karma

Install karma-cli globally:

Use WebStorm’ built-in npm and search for karma-cli, add -g option before hitting Install for global installation.
Or use built-in Terminal to install karma-cli with:

Code Block
npm install -g karma-cli

Karma configuration

To run new tests with Karma, you need to have a Karma configuration file (learn more about it).