原文地址:http://yeoman.io/codelab/setup.htmlhtml
与Yeoman的交互大多数是经过命令行。在苹果机器须要使用Terminal应用,在Linux使用shell。若是使用Windows,那你能够选择使用cmder/PowerShell/cmd.exenode
在安装Yeoman前,你须要安装如下软件。git
你可使用如下命令检查安装的Node和npm版本github
node --version && npm --version
若是你须要更新安装Node,最简单的方法就是下载一个安装文件。使用windows平台的话就下载.msi文件,Mac电脑使用.pkg。shell
npm程序包管理器捆绑在Node中,可是你可能须要更新它。一些Node版本可能捆绑了旧的npm版本。你可使用如下命令行更新npm。npm
npm install --global npm@latest
你能够输入如下命令来查看Git的版本windows
git --version
若是没有Git,能够从http://git-scm.com/下载Gitide
一旦你安装了Node,输入如下命令来安装Yeoman工具箱grunt
npm install --global yo bower grunt-cli
错误:若是你看到了权限或者存取错误,好比EPERM或者EACCESS。你能够访问https://github.com/sindresorhus/guides/blob/master/npm-global-without-sudo.md来解决问题工具
使用下面的命令来检查yo,bower,grunt的版本
yo --version && bower --version && grunt --version
运行上面的命令会输出三个软件的版本