1

所以当我跑步时

yo meanjs:crud-module foo

我明白了

You're using the official MEAN.JS generator.
? What mean.js version would you like to generate? (Use arrow keys)
  master 
❯ 0.4.0 
  0.4.1 

它试图引导我完成克隆示例 meanJS 应用程序的过程。

为什么它不表现为子生成器?

编辑

我使用的是 MEANJS 4.0,当前的 YO 生成器不支持。我安装了开发中的 yo 生成器

sudo npm install -g meanjs/generator-meanjs#0.4-dev

现在我可以使用垂直模块子生成器了。

4

2 回答 2

0

Did you create the project using the generator? Your project probably doesn't have a .yo-rc.json file so the generator doesn't know there is a yo project.

于 2015-09-25T12:39:13.093 回答
0

0.4.x 生成器正在进行中。 Github 仓库

于 2015-09-30T12:31:50.973 回答