To install generator-angular-component from npm, run:
npm install -g generator-angular-component
Finally, initiate the generator:
yo generator-angular-component
I find myself creating angular components quite a bit, broken into three files: directive, controller, template. This helps me with that pattern.