简体   繁体   English

无法将“ yeoman”识别为内部或外部命令,可操作程序或批处理文件

[英]'yeoman' is not recognized as an internal or external command, operable program or batch file

I am trying to learn angularjs, in between i came across yeoman, So i tried installing yeoman, I refered : http://decodize.com/css/installing-yeoman-front-end-development-stack-windows/ at the line "There are 2 method to install Yeoman.", i followed "a." 我正在尝试学习angularjs,在这期间我遇到了yeoman,因此我尝试安装yeoman,我所指的是: http ://decodize.com/css/installing-yeoman-front-end-development-stack-windows/ “有两种安装Yeoman的方法。”,我跟随“ a”。 And installed by 并安装

Command prompt: D:\\Angular_Work_Space>npm install yeoman 命令提示符:D:\\ Angular_Work_Space> npm install yeoman

after downloading all the packages, i could able to see the node_modules/ folder in 'Angular_Work_Space', 下载所有软件包后,我可以在“ Angular_Work_Space”中看到node_modules /文件夹,

So after this, i tried, D:\\Angular_Work_Space>yeoman init 所以在此之后,我尝试了D:\\ Angular_Work_Space> yeoman init

got error: 'yeoman' is not recognized as an internal or external command, operable program or batch file. 错误: “ yeoman”未被识别为内部或外部命令,可操作程序或批处理文件。

please tell me what i have missed on what else to do. 请告诉我我错过了其他事情。

First of all, the npm-package yeoman is deprecated and shouldnt be used anymore. 首先,不建议使用npm-package yeoman ,不再使用它。 Your Article is from 2012, so thats pretty old in the world of the rapidly developing JS-World. 您的文章来自2012年,因此在快速发展的JS-World的世界中已经相当古老了。 ;) ;)

What you need is the package yo . 您需要的是包裹yo

Further, you dont install yeoman locally, but globally like this: npm install -g yo 此外,您无需在本地安装yeoman,但可以像这样全局npm install -g yonpm install -g yo

To initialize a project, you probabyl will also need a generator. 要初始化项目,您可能还需要一个生成器。 But i suggest you just crawl yourself through the yeoman-documentation here 但我建议您在这里浏览yeoman文档

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

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