Receive Error at end of installation
/usr/local/lib/node_modules/generator-karma/node_modules/yeoman-generator/lib/util/common.js:5
'\n `---------´ | ' + 'Welcome to Yeoman,'.yellow.bold + ' |' +
^
TypeError: Cannot read property 'bold' of undefined
at Object.
npm cache clean && npm update -g generator-angular
I did that and still get the same error.
@kevva This fix worked for me with the webapp generator yeoman/generator-webapp#137
Any ideas why similar procedure isn't working here? (same TypeError: Cannot read property 'bold' ... is being thrown after reinstall)
Scratch that last comment!
Don't know if i was simply running commands in wrong order or if had to do with firing up a fresh terminal window. Working just fine now. :) I did what was previously suggested more or less and am happily generating stuff again
npm uninstall -g generator-angular generator-webapp yeoman-generator
npm cache clean
npm install -g generator-angular generator-webapp
update: I thought i was loosing my mind when this broke again for me just now. Then I invoked yo from existing and fresh terminal session and saw the versions didn't equate. I'm not sure how/where/why... I'm using homebrew on os X 10.8.4 if that helps.

@mikeerickson As it says here
/usr/local/lib/node_modules/generator-karma/node_modules/yeoman-generator/lib/util/common.js:5
that issue was caused from karma, updating karma will fix for you. I did :
npm cache clean && npm uninstall -g generator-karma && npm install -g generator-karma
and it was fixed.
@eckdanny Good to hear. :)
I am still getting this issue. If I create a new angular project with yeoman I keep getting the error "TypeError: Cannot read property 'bold' of undefined". What is strange is that one time I did not get the error out of 6 times trying. I had the same issue with webapp but I now have that working based on the suggestions of people on issue #137 of webapp. I think this issue comes from "generator-karma/node_modules/yeoman-generator/lib/util/common.js:5:56".
@poeticninja : Updating karma will fix for you. do :
npm cache clean && npm uninstall -g generator-karma && npm install -g generator-karma
@geekrax I have done that. And I just did it again to make sure I did it properly but it still does not work.
@poeticninja This has been driving me nuts too. (#337)
What finally worked for me, was installing generator-karma in local node_modules. (as opposed to global install)
@eckdanny Thanks, I will have to try that and see if it works for me.
I'm having the same problems. Tried cleaning npm cache, reinstalled generator-karma/angular/, updated yeoman. Any news?
Any update on this? I have tried repeatedly to clean the cache, uninstall, re-install and the issue persists. Thank you.
There's nothing we can do on our side. It's some layer of caching that causes those problems for you. You either have an old generator-angular or generator-karma locally or globally installed.
For me, npm cache clean && npm uninstall -g generator-karma && npm install -g generator-karma worked fine! Thanks for the fix.
Thank you. I didn't have karma installed at all. After looking at the above fix, I did install karma and then installed generator-angular and voila, it worked.
I had the same problem as in most of the comments, I did all the above procedures and no answer fixed the problem so I tried to solve it after doing global uninstall for angular: npm uninstall -g generator-angular but I still see angular in the list of available generators when I run yo --help so I thought to do it locally npm uninstall generator-angular and that was the reason why it still showed the error before, I did the global installation again and the issue is fixed, hope this may help!!!