yo ng generator does not work when generator-ng is installed globally
The "yo ng" command results in error (saying that the generator does not exist) when I run it from an angular project root dir. The generator-ng has been installed globally with the "-g" option. I have installed version 0.0.7. My npm version is 1.3.8. When I installed the generator locally it works just fine (npm install generator-ng).
Comments (7)
-
repo owner -
reporter node: v0.10.16 yo: 1.0.0-rc.1.4
-
repo owner I don't have access to my computer right now to check versions but I believe I'm using a previous yo version. Can you try on a pre 1.0 version ? It is yo that is responsible for finding the generator so I don't think I can do much about this. Still I'll look into it as soon as I have some time (likely this evening).
-
repo owner I just tried on my computer (again) with the same version of yo than you. No problem there.
What OS are you using ? I've validated generator-ng on Mac OS X & Linux but never on Windows...
-
reporter Sorry for not answering earlier - I tried on OS X 10.7.5.
-
repo owner - changed status to invalid
OK, I'm sorry to say this but I can't reproduce this one at all. I'll have to close it, at least until I can get better info about this.
-
repo owner I just upgraded generator-ng to make it compatible with yo 1.0.3. Can you try the new 0.1.0 version ? I hope it will solve your issue...
- Log in to comment
This is strange. What are your yo & node versions ? And what is your OS ?