前端 angular 和 bootstrap 的安装步骤
2016-05-16 15:17
627 查看
1、安装bower模块:
npm install -g bower --registry=http://registry.npm.taobao.org
2、创建.bowerrc 文件存放 前端相关的模块
test_163:/home/exenode/part3/scms # more .bowerrc
{
"directory":"public/lib"
}
3、安装 angular 和 bootstrap,需要先安装git 并且把git添加到系统环境变量中:
bower install --allow-root -g --save angular --registry=http://registry.npm.taobao.org
bower install --allow-root -g --save bootstrap --registry=http://registry.npm.taobao.org
安装完成后,在 public/lib 目录下有 angular、 bootstrap 、jquery 三个模块。
test_163:/home/exenode/part3/scms/public/lib # l
total 20
drwxr-xr-x 5 root root 4096 May 16 14:55 ./
drwxr-xr-x 3 root root 4096 May 16 14:11 ../
drwxr-xr-x 2 root root 4096 May 16 14:53 angular/
drwxr-xr-x 8 root root 4096 May 16 14:55 bootstrap/
drwxr-xr-x 5 root root 4096 May 16 14:55 jquery/
npm install -g bower --registry=http://registry.npm.taobao.org
2、创建.bowerrc 文件存放 前端相关的模块
test_163:/home/exenode/part3/scms # more .bowerrc
{
"directory":"public/lib"
}
3、安装 angular 和 bootstrap,需要先安装git 并且把git添加到系统环境变量中:
bower install --allow-root -g --save angular --registry=http://registry.npm.taobao.org
bower install --allow-root -g --save bootstrap --registry=http://registry.npm.taobao.org
安装完成后,在 public/lib 目录下有 angular、 bootstrap 、jquery 三个模块。
test_163:/home/exenode/part3/scms/public/lib # l
total 20
drwxr-xr-x 5 root root 4096 May 16 14:55 ./
drwxr-xr-x 3 root root 4096 May 16 14:11 ../
drwxr-xr-x 2 root root 4096 May 16 14:53 angular/
drwxr-xr-x 8 root root 4096 May 16 14:55 bootstrap/
drwxr-xr-x 5 root root 4096 May 16 14:55 jquery/
相关文章推荐
- Bootstrap 网格系统(Grid System)的工作原理 - 媒体查询
- JS组件Bootstrap实现图片轮播效果
- 使用bootstrap标签页
- Bootstrap4一次重大更新 几乎涉及每行代码
- bootstrap 分页
- BootStrap点击下拉菜单项后显示一个新的输入框实现代码
- Bootstrap3 input输入框插入glyphicon图标的方法
- 论Bootstrap3和Foundation5网格系统的异同
- bootstrapValidator 全局验证
- WEB前端开发框架Bootstrap3 VS Foundation5
- bootstrap布局中input输入框右侧图标点击功能
- Bootstrap所支持的表单控件实例详解
- bootstrap table 服务器端分页--ashx+ajax
- 一周乱弹(1,bootstrap模态框关闭钩子方法2,eclipse debug 临时增加语句执行3,js isFinite()方法4,js中获取request里的值5,js ajax执行顺序
- Qt quick 实现bootstrap界面之标签控件
- bootstrap table 显示行号
- 学做Bootstrap的第一个页面
- Java全新高大尚HTML5 bootstrap ace后台框架源码springmvc mybatis
- bootstrapValidator.js 做表单验证
- 57-004-1 bootstrap定义一个导航页面包括bootstrap面板,表格,分页,胶囊导航等样式