没有检测到你的aspnet生成器

时间:2015-08-29 02:43:51

标签: yeoman yeoman-generator ubuntu-15.04

我正在使用ubuntu生动。试图使用yeoman aspnet生成器。使用以下命令安装发电机

  

sudo npm install -g yo

     

sudo npm install -g generator-aspnet

当我尝试使用命令时使用它:yo aspnet 我得到以下错误

Error aspnet 

You don't seem to have a generator with the name aspnet 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.

我能够在/usr/local/lib/node_modules/generator-aspnet下看到生成器文件 我错过了什么?

1 个答案:

答案 0 :(得分:1)

对于任何Yeoman问题,请始终运行yo doctor