当我跑的时候
yo meanjs我得到以下错误。
Error meanjs
You don't seem to have a generator with the name meanjs installed.
You can see available generators with npm search yeoman-generator and then install them with npm install [name].
To see the 0 registered generators run yo with the `--help` option.但是当我跑步的时候。
npm search yeoman-generator我明白了..。
generator-meanis A Meanis Generator for Yeoman
generator-meanjs MEAN.JS Official Yeoman Generator
generator-meanjs-table MEAN.JS Table Yeoman Generator 所以我安装了meanjs生成器,但它不工作。我该如何解决这个问题?
发布于 2015-07-23 14:47:21
当你找不到生成器时,通常的调试步骤是运行:
yo doctor这将检查您的计算机并确保所有内容都已正确配置。
它唯一不能正确检测的情况是,有时人们安装了多个版本的npm,这会扰乱节点生态系统。
重述的
运行yo doctor
如果这不起作用,请在yeoman/yo上打开一个问题,以便我们可以向yo doctor命令添加更多检查。
发布于 2015-07-22 11:38:36
Per the docs,您需要同时安装yo和生成器:
$ npm install -g yo
$ npm install -g generator-meanjs然后您可以执行以下操作:
$ yo meanjshttps://stackoverflow.com/questions/31553345
复制相似问题