I\'m trying to setup a development environment with Yeoman for AngularJS,
I installed Yeoman according to the instructions: sudo npm install -g yo bower grunt-cli generato
The obvious answers already posted here were completely unhelpful to me. If reinstalling grunt-karma via npm didn't work, and explicitly loading the task in the Gruntfile didn't help, you may be running a version of npm prior to 1.2.10.
It turns out that recent versions of grunt-karma rely on peer dependencies, which were introduced to Node with version 8.19. After upgrading Nodejs (which also installs npm) and upgrading karma globally, I discovered I needed to edit my karma config files as well. You'll want to add frameworks: ['jasmine'], to karma.conf.js and remove references to JASMINE and JASMINE_ADAPTER from the files setting.