It's time to start using Karma. Installations and applications are constantly changing. The following guide is intended to be brief; you can go to the Karma website at http://karma-runner.github.io/ and find the latest instructions there.
The main focus of this section will be the specific configuration used in this book and not an in-depth installation guide.
To install Karma, we will need to have Node.js on our computer. Node.js runs on Google's V8 engine and allows JavaScript to be run on several operating systems.
Developers can publish node applications and modules using NPM (Node Package Manager). NPM allows developers to quickly integrate applications and modules into their applications.
Karma runs and is installed through the npm
package; therefore, we need Node.js before we can use or install Karma. To install Node.js, go to http://nodejs.org/ and follow the installation instructions.
Once we have Node.js installed, lets type the following command...