generator-express-angular icon indicating copy to clipboard operation
generator-express-angular copied to clipboard

Cannot read property 'bold' of undefined

Open climboid opened this issue 11 years ago • 6 comments

I get this error when trying to run yo express-angular

Fixed it by removing .bold from file /usr/local/lib/node_modules/generator-express-angular/node_modules/yeoman-generator/lib/util/common.js

Not sure how this file is generated from the repo though...

climboid avatar Sep 20 '13 00:09 climboid

:+1:

nickmerwin avatar Sep 27 '13 17:09 nickmerwin

+1, tried npm cache clean and fresh yo install / generator install with no luck.

Because i'm using npm my common.js was located in: Users//.nvm/v0.10.18/lib/node_modules/generator-express-angular/node_modules/yeoman-generator/lib/util/common.js

There were two "bold" entries, I believe lines 3 and 6.

joelbowen avatar Sep 27 '13 19:09 joelbowen

i got this error , npm cache clean and reinstall generator does not work too

dfang avatar Oct 01 '13 06:10 dfang

https://github.com/yeoman/generator-webapp/issues/137#issuecomment-23212680

dfang avatar Oct 01 '13 12:10 dfang

+1, no luck yet;

nuguja avatar Oct 07 '13 16:10 nuguja

I'm just learning Yeoman and npm, but if you see this commit, the dependencies were updated, which fixed the issue for me: https://github.com/Grievoushead/generator-express-angular/commit/143a3267f346ba79d41b35a81c602b5ec22a636d

I still don't understand why this is not reflected in what you get on an npm install (maybe the npm registry needs to be updated?), but you can make the change manually to package.json and update for now.

Landerson352 avatar Oct 08 '13 21:10 Landerson352