我正在使用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
下看到生成器文件
我错过了什么?
答案 0 :(得分:1)
对于任何Yeoman问题,请始终运行yo doctor
。