我将我的生成器应用程序发布到我们团队的 VSTS npm 注册表中,我可以使用 command: 将它安装到我的本地机器中npm install -g geneartor-app,但是当我运行 yo command:yo app时,它显示以下错误:
E:\workspace
λ yo app
Error app
You don't seem to have a generator with the name “app” installed.
But help is on the way:
You can see available generators via npm search yeoman-generator or via http://yeoman.io/generators/.
Install them with npm install generator-app.
To see all your installed generators run yo without any arguments. Adding the --help option will also show subgenerators.
If yo cannot find the generator, run yo doctor to troubleshoot your system.
有谁知道为什么 yeoman 找不到generator-app包裹。顺便说一句,npm link可以工作,我generator-app通过使用 yeoman 的 generator-generator 生成了。这是我的源代码:
