To run locally on Windows (I am on Windows 10), I recommend adding the following to the package.json file:
"scripts": { "test": "cd ./node_modules/karma/bin/ && karma start" },
Then from the command line, type npm run test
I prefer not to install cli globally for these tools and instead run them locally from my project using a script. That way, I can quickly find out which version is in the dev dependencies, and I don't have to worry about the global version being different from the local one.
"devDependencies": { "karma": "^1.4.0" }
source share