丿'伊枫de博客  

1. 安装yo与gulp bower

  $ npm install -g yo

  $ npm install -g gulp bower

2. 快速创建

    $ npm install -g generator-angular-gulp-bower

    $ yo angular-gulp-bower  

3. 自定义

   新建package.json文件后 

    yo angular-gulp-bower

  更新glup插件:npm install --save-dev

 

  设置bower全局变量:

  出现 Bower : ENOGIT git is not installed or not in the PATH错误,则需要配置你的Git到path,具体如下:

  假如你的git安装目录是”C:\Program Files (x86)\Git”,在path中( 系统属性中)加入git的bin和cmd目录,

  如C:\Program Files (x86)\Git\bin;C:\Program Files (x86)\Git\cmd

 

posted on 2016-03-01 12:00  丿伊枫  阅读(274)  评论(0)    收藏  举报