原文地址: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
運行上面的命令會輸出三個軟件的版本