问答详情
源自:-

Error angular firstYo

使用yeoman创建项目时,出现如下信息:

You don't seem to have a generator with the name angular installed.

You can see available generators with npm search yeoman-generator and then instatall [name].

To see the 0 registered generators run yo with the `--help` option.


提问者:zhawk 2014-12-29 11:09

个回答

  • Materliu
    2014-12-29 12:09:57

    这是因为在使用generator之前没有先行安装对应的generator, 如果是angular的话, 需要先运行 npm install -g generator-angular 进行安装。

  • zhoulujun007
    2016-06-28 13:58:28

    http://www.zhoulujun.cn/zhoulujun/html/webfront/ECMAScript/nodejs/7844.html

  • zhoulujun007
    2016-06-28 13:57:54

    参考下……http://www.zhoulujun.cn/zhoulujun/html/webfront/ECMAScript/nodejs/7844.html

  • Devisn
    2016-01-08 16:31:15

    楼主您好!我也遇到了相同的问题!您说说的"发现是node_path配置的问题,修改之后,就没问题了。"是怎么修改呢?

  • dreamzk
    2015-02-10 23:07:22

    npm i yo -g
    npm i yeoman/generator-webapp
    npm i yeoman/generator-mocha

    yo webapp