noprotocol / generator-np-laravel

UNMAINTAINED: Use https://github.com/noprotocol/generator-np-stack
MIT License
11 stars 5 forks source link

Yeoman 1.5.0 support #4

Closed bjrnblm closed 8 years ago

bjrnblm commented 9 years ago

Installing this generator whilst having yeoman 1.5.0 installed shows this warning:

npm WARN EPEERINVALID generator-np-laravel@2.1.4
requires a peer of yo@>=1.4.6 but none was installed.

Which is weird because 1.5.0>=1.4.6. Solved by removing yo from peerDependencies, However i am not sure what the consequences are.

Also that it seems that chalk or it's dependency ansi-styles isn't working properly anymore. The bold and magento function are returning errors, i removed them for now.

events.js:141
      throw er; // Unhandled 'error' event
      ^

TypeError: Cannot read property 'bold' of undefined
    at NpLaravelGenerator.animateLogo (/Users/bjorn/generator-np-laravel/app/index.js:61:36)
    at /Users/bjorn/generator-np-laravel/node_modules/yeoman-generator/lib/base.js:421:16
    at processImmediate [as _immediateCallback] (timers.js:383:17)

@gverschuur Can you check if these quick fixes are OK to merge or we should spend a little more time to fix them properly?