SerhiiKozachenko / generator-express-angular

yeoman angular generator with express
https://npmjs.org/package/generator-express-angular
56 stars 17 forks source link

Missing generator-angular dependency #5

Closed twjacobsen closed 11 years ago

twjacobsen commented 11 years ago

I've noticed, that when creating an express-angular scaffold on a clean install, I also have to manually install generator-angular. This should be added as a dependency, no?

wolfgangcodes commented 11 years ago

:+1: If this depends on generator-angular then it should declare it as a dependency. Or is it supposed to use express-angular:common instead?

I'm getting : Error express-angular:app --coffee --minsafe

You don't seem to have a generator with the name angular:common:/usr/local/lib/node_modules/generator-express-angular/app/index.js installed. You can see available generators with npm search yeoman-generator and then install them with npm install [name]. To see the 15 registered generators run yo with the --help option.

GabLeRoux commented 11 years ago

:+1: Same error here

You don't seem to have a generator with the name angular:common:/usr/local/share/npm/lib/node_modules/generator-express-angular/app/index.js installed.

It didn't npm install and bower install automatically.

It worked after I npm install generator-angular -g. It should definitely be in dependencies.

wolfgangcodes commented 11 years ago

7 could fix it?

twjacobsen commented 11 years ago

Probably, but I'm not sure wether or not it's great practice for generators to be dependant on each other?

GabLeRoux commented 11 years ago

Well, it's supposed to work fine without breaking if a version is specified for the dependency. It may sound weird at the first time to have dependencies between generators, but it's already being dependent on another generator.

If it's not clearly specified (with a version) as a dependency, things are most likely going to break sometime. Am-I right?

GabLeRoux commented 11 years ago

Well, it's supposed to work fine without breaking if a version is specified for the dependency. It may sound weird at the first time to have dependencies between generators, but it's already being dependent on another generator.

If it's not clearly specified (with a version) as a dependency, things are most likely going to break sometime. Am-I right?

twjacobsen commented 11 years ago

I'm sure it's gonna work great, and not break or anything, I was just under the impression that generators were independant plugins, not depending on other generators. I'll close this, as has #7 definately fixed this.

tapanand commented 10 years ago

Only for MAC (try to find the node_module folder for other OS):

If your trying for generator-express-angular, then follow these steps:

  1. npm cache clean
  2. go "/usr/local/lib/node_modules" (for mac)
  3. vim generator-express-angular/package.json, look for "peerDependencies": { "generator-karma": "x.x.x", //change this "x.x.x" version to whatever generator-angular/package.json have. For me it is 0.8.2 "yo": ">=1.0.0-rc.1.1" },
  4. rm -rf generator-karma
  5. npm install -g generator-express-angular
  6. yo express-angular app_name

That's it.

Happy Coding :)

jsgandalf commented 8 years ago

@tapanand. Thanks for the quick fix. Shouldn't this just work out of the box? Anybody still using this?