Ich habe versucht, den Yeoman Winkelgenerator mit folgendem zu installieren:Yeoman Winkelgenerator läuft installieren, aber Generator erscheint nicht im Generator Liste
npm install -g generator-angular
Es sieht alles wie es richtig installiert ist ...
...
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])
Voll log hier: https://dl.dropboxusercontent.com/s/hs5dgy1i6f90vu4/angular-generator-log.txt
Aber jedes Mal, wenn ich tun: yo angular
erhalte ich: You don't seem to have a generator with the name angular installed.
yo doctor
sagt alles ist in Ordnung und ich habe eckig installiert global mit Npm.
yo --help
zeigt:
Please choose a generator below.
Mocha
mocha:app
Webapp
webapp:app
Ich verwirrt ein wenig, da es keine Fehler bei der Installation sind ...?
diese Antwort Siehe: http://stackoverflow.com/questions/18081125/why-are-my-yeoman-generators-installing-in-the-wrong-place – grant
I habe das selbe Problem wie Sie und im Gegensatz zu der Antwort, die im obigen Kommentar verlinkt ist, habe ich keinen zweiten Ordner mit Knoten-Modulen und mein NODE_PATH ist gesetzt. Dein Doktor sagt, alles ist cool, aber neue Generatoren werden nicht erkannt. – knuckfubuck
Ich habe einige Probleme gesehen, wenn Leute node/npm über das .pkg installieren und dann durch brew aktualisieren (oder umgekehrt), was im Grunde passiert, ist, dass 2 globale node_modules Ordner an verschiedenen Orten erstellt werden. Wenn Sie Knoten in mehr als einer Weise installiert haben, könnte dies Ihr Problem sein.Versuchen Sie noch einmal, npm i -g yeoman zu öffnen, oder entfernen Sie alle node.js und npm auf Ihrem Computer und installieren Sie sie erneut. –