I've tried to install the yeoman angular generator with the following:
npm install -g generator-angular
It all looks like it's installed properly...
...
npm http GET https://registry.npmjs.org/string_decoder
npm http 304 https://registry.npmjs.org/string_decoder
npm http GET https://registry.npmjs.org/event-emitter
npm http GET https://registry.npmjs.org/next-tick
npm http 304 https://registry.npmjs.org/event-emitter
npm http 304 https://registry.npmjs.org/next-tick
[email protected] /Users/rich/.node/lib/node_modules/generator-angular
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected], [email protected])
└── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
Full log here: https://dl.dropboxusercontent.com/s/hs5dgy1i6f90vu4/angular-generator-log.txt
But every time I do: yo angular
I get: You don't seem to have a generator with the name angular installed.
yo doctor
says everything is ok and I have angular installed globally with npm.
yo --help
shows:
Please choose a generator below.
Mocha
mocha:app
Webapp
webapp:app
I'm a bit baffled as there aren't any errors with installation...?
Strangely enough I fixed this very same problem by replacing
npm install -g generator-angular
with
npm install -G generator-angular
Note the capital G in the second command