首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >angular-fullstack没有出现在yeoman生成器列表中吗?

angular-fullstack没有出现在yeoman生成器列表中吗?
EN

Stack Overflow用户
提问于 2014-10-17 12:22:41
回答 1查看 311关注 0票数 0

我有个奇怪的问题。我想为约曼安装angular-fullstack生成器...

代码语言:javascript
复制
npm install -g generator-angular-fullstack

这个返回..。

代码语言:javascript
复制
yo@1.3.2 postinstall /home/lmacvean/.node/lib/node_modules/generator-angular-     fullstack/node_modules/yo
yodoctor

[Yeoman Doctor] Everything looks all right!

generator-angular-fullstack@2.0.13
/home/lmacvean/.node/lib/node_modules/generator-angular-fullstack ├──
chalk@0.4.0 (has-color@0.1.7, ansi-styles@1.0.0, strip-ansi@0.1.1) ├──
wiredep@0.4.2 (lodash@1.3.1, chalk@0.1.1) ├── yeoman-generator@0.17.7
(dargs@2.0.3, diff@1.0.8, class-extend@0.1.1, rimraf@2.2.8,
text-table@0.2.0, mime@1.2.11, async@0.9.0, isbinaryfile@2.0.1,
github-username@1.0.0, shelljs@0.3.0, cross-spawn@0.2.3,
grouped-queue@0.3.0, nopt@3.0.1, mkdirp@0.5.0, iconv-lite@0.4.4,
debug@1.0.4, underscore.string@2.3.3, lodash@2.4.1, chalk@0.5.1,
run-async@0.1.0, findup-sync@0.1.3, file-utils@0.2.1, glob@4.0.6,
request@2.45.0, cheerio@0.17.0, gruntfile-editor@0.2.0,
inquirer@0.7.3, download@1.0.7) ├── yo@1.3.2 (is-root@1.0.0,
sudo-block@1.0.0, fullname@1.0.0, yeoman-doctor@1.0.0, opn@1.0.0,
yeoman-character@1.0.0, async@0.9.0, nopt@3.0.1, shelljs@0.3.0,
underscore.string@2.3.3, lodash@2.4.1, string-length@1.0.0,
findup@0.1.5, yosay@1.0.0, chalk@0.5.1, multiline@1.0.1,
update-notifier@0.2.2, configstore@0.3.1, yeoman-environment@1.0.2,
insight@0.4.3) └── generator-ng-component@0.0.10

然后yo回来了..。

代码语言:javascript
复制
? 'Allo! What would you like to do? 
Run a generator
Webapp 
Mocha 
──────────────
Update your generators 
Install a generator 
Find some help 
Get me out of here! 
──────────────

问题是我做错了什么,为什么angular- list堆栈没有出现在我的yeoman列表中?

EN

回答 1

Stack Overflow用户

发布于 2014-10-17 12:45:36

我发现我的问题几乎是这个问题的复制品。

Yo unaware of installed generators

因为我之前必须按照this issue修改npm的环境变量

答案很简单,就是像这样设置另一个环境变量...

代码语言:javascript
复制
export NODE_PATH=$HOME/.node/lib/node_modules/
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/26417826

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档