Running npm test after a fresh install doesn't work
pselle opened this issue · comments
$ npm test
> Surf-N-Perf.js@0.0.1 test /Users/pselle200/Sites/Surf-N-Perf
> karma start
sh: karma: command not found
npm ERR! weird error 127
npm ERR! not ok code 0
You probably want to change your package.json to:
"scripts": {
"test": "./node_modules/karma/bin/karma start --single-run"
},
so that npm test runs the locally installed karma, and also exits after one run. This way npm install works, and travis ci can pass.
@bryanpaluch you mean me, personally, or should we change it in the repo? Otherwise we change the docs to ask you to install karma globally.
I meant the repo package.json.
Commit f7372df fixes this