mrichard / generator-marionette

Yeoman marionette generator a la AMD
329 stars 72 forks source link

Bootstrapping throws TypeError #16

Closed ErikEvenson closed 11 years ago

ErikEvenson commented 11 years ago

Got this error while following the README instructions:

$ yo marionette

TypeError: Cannot read property 'bold' of undefined
    at Object.<anonymous> (/Users/eevenson/Downloads/temp2/node_modules/generator-marionette/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> (/Users/eevenson/Downloads/temp2/node_modules/generator-marionette/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)
guikfe commented 11 years ago

I get this error as well, both in Windows and Ubuntu.

mrichard commented 11 years ago

Hi,

Can you list what you have installed? Running:

npm install git://github.com/mrichard/generator-marionette.git npm install git://github.com/mrichard/generator-mocha-amd.git

yo marionette

seems to work for me.

Thanks

mrichard commented 11 years ago

Also perhaps try the solutions here. Looks like yeoman-generator was causing this problem. Note that I use a custom yeoman generator fork because of a bug in the hookFor functionality. So I may have to update my fork.

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

ErikEvenson commented 11 years ago

Michel,

Running:

npm install git://github.com/mrichard/generator-marionette.git
npm install git://github.com/mrichard/generator-mocha-amd.git

yo marionette

Gives me the same error.

Running the same after a npm cache clean gives me the same error as well. I am running npm 1.3.8 and node v0.10.17. Let me know what other diagnostic info I can provide.

Cheers

guikfe commented 11 years ago

I think this might be related to the version of Yeoman. I'm running the latest version, 1.0.3.

mrichard commented 11 years ago

hi, yes I think I found the issue. Merged the latest yeoman-generator code with my fork. Try clearing out everything in the project directory and running the below commands again. Let me know how it goes.

npm install git://github.com/mrichard/generator-marionette.git npm install git://github.com/mrichard/generator-mocha-amd.git

yo marionette

grunt

ErikEvenson commented 11 years ago

That seems to have fixed the installation issue. Thanks!

ErikEvenson commented 11 years ago

Thanks for the quick fix Michel. Incorporating these large-scale yoeman projects into my workflow looks promising, but sometimes feels daunting due to the sheer amount of good stuff in them.

mrichard commented 11 years ago

Glad to hear. If you have any questions on the generator feel free to ask. Closing this issue.