我试图安装yeoman角发生器与以下:
npm install -g generator-angular
它看起来像是正确安装…
... 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 generator-angular@0.7.1 /Users/rich/.node/lib/node_modules/generator-angular ├── chalk@0.3.0 (has-color@0.1.4,ansi-styles@0.2.0) ├── wiredep@0.4.2 (chalk@0.1.1,lodash@1.3.1) └── yeoman-generator@0.13.4 (dargs@0.1.0,diff@1.0.8,debug@0.7.4,rimraf@2.2.6,chalk@0.2.1,text-table@0.1.1,mime@1.2.11,async@0.2.10,mkdirp@0.3.5,isbinaryfile@0.1.9,shelljs@0.1.4,underscore.string@2.3.3,glob@3.2.9,iconv-lite@0.2.11,tar@0.1.19,findup-sync@0.1.3,lodash@1.3.1,request@2.25.0,cheerio@0.12.4,inquirer@0.3.5)
完整登录此处:
https://dl.dropboxusercontent.com/s/hs5dgy1i6f90vu4/angular-generator-log.txt
但是每次我做的都是:我有点像:你似乎没有一个名字角安装的发电机。
哟医生说,一切都很好,我已经在全球有角度安装了npm。
哟 – 帮助显示:
Please choose a generator below. Mocha mocha:app Webapp webapp:app
解决方法
奇怪的是,我通过替换解决了这个相同的问题
npm install -g generator-angular
同
npm install -G generator-angular
注意第二个命令中的大写字母G