转载请注明出处: http://qiudeqing.com/tools/2015/08/02/yeoman.html

官网教程精简版

  1. 安装node
  2. 安装yeoman, bower, grunt-cli
      npm install --global yo bower grunt-cli
    
  3. 安装AngularJS generator
      npm install --global generator-angular@0.11.1
    
  4. 创建目录文件夹
      mkdir mytodo && cd mytodo
    
  5. 安装angular模板
      yo angular
    

    安装选项中不要sass, 要bootstrap, angular模块,按照默认即可,enter安装.

可能会报错: If you see conflict package.json, it is a temporary error. Hit y and then enter to continue.不用管它