哟 meanjs 不识别生成的项目

yo meanjs not recognizing generated project

我使用 Yeoman 创建了一个新的 MeanJS 项目。它安装得很好。当我想使用 yo meanjs:angular-module mymodule 添加新模块时,它会尝试创建一个新项目 ("Which mean.js version would you like to generate") 而不是仅添加新模块。

我应该在哪里查找错误?

我正在使用 node v0.12.7npm v2.11.3

是的,我知道这可能会造成混淆,至少当您开始使用 Meanjs 时是这样。您可能使用了大于 0.3.0(稳定)的版本,并且像 yo meanjs:angular-module 这样的子生成器仅在 0.3 版本中可用(在撰写本文时) .0(稳定)。查看此页面顶部的红色消息:http://meanjs.org/generator.html What's confusing here is that they recommended on their page to install the application using the yeoman but after you did that you expect to be able to use sub-generators... If you want use subs, please use 0.3.0. and I suggest you to use supported Node.js and npm versions (http://meanjs.org/docs/0.3.x/#troubleshooting):

MongoDB
MongoDB 版本 2。4.x 受支持。
Node.js
支持节点版本 0。10.x。
npm
支持 npm 版本 1。3.x。