Scaffolding the framework with Yeoman:

$ sudo npm install -g generator-angular
$ yo angular
$ npm install grunt-karma --save-dev
$ sudo npm install karma-phantomjs-launcher --save-dev