简体   繁体   English

无法识别Yo命令

[英]Yo command is not recognized

I am new to these command and following a book to start Angular.js 我是这些命令的新手,并跟随着一本书来启动Angular.js

npm install –g grunt-cli
npm install –g bower
npm install –g generator-angular

all commands are successfully run then I am creating a folder in C:\\StockDog and running the command "yo angular StockDog" but it throws the error that yo command is not recognized. 所有命令都成功运行,然后在C:\\ StockDog中创建一个文件夹并运行命令“ yo angular StockDog”,但它引发错误,即您无法识别yo命令。 I added the path to PATH variable in MyComputer Environmental variable %AppData%\\npm but same error yo command is not found.Please suggest why i am getting this error 我在MyComputer环境变量%AppData%\\ npm中将路径添加到PATH变量,但未找到相同的错误yo命令。请提出为什么我收到此错误

您需要安装Yeoman( npm install -g yo )来运行Yeoman生成器,例如generator-angular它们不能单独工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM