Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Yeoman error when running yo webapp

Tags:

yeoman

Running the latest of npm and node and I've checked to make sure their ownership privileges are correct, any ideas?

TypeError: Cannot read property 'bold' of undefined
    at Object.<anonymous> (/usr/local/lib/node_modules/generator-webapp/node_modules/yeoman-generator/lib/util/common.js:5:56)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at Object.<anonymous> (/usr/local/lib/node_modules/generator-webapp/node_modules/yeoman-generator/lib/base.js:101:26)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
like image 702
ianqueue Avatar asked Aug 22 '13 17:08

ianqueue


1 Answers

Had the same issue. What solved it for me was manually updating yeoman-generator. For this I edited package.json in /usr/lib/node_modules/generator-webapp/ and changed the version of yeoman-generator to 0.13.2 and ran npm install in the directory after that.

The git repository of generator-webapp is already using the latest yeoman-generator version but you have to wait for a new release I guess.

like image 164
rmbl Avatar answered Oct 07 '22 01:10

rmbl