创建nexus bower proxy host

比较简单,如下图:

安装bower && bower-nexus resolver

npm install -g bower-nexus3-resolver
or
npm install bower-nexus3-resolver --dev
npm install -g bower

配置nexus 私服解析地址

.bowerrc

{
"registry" : {
"search" : [ "http://hostip:8081/repository/bower-public/" ]
},
"resolvers" : [ "bower-nexus3-resolver" ]
}

项目使用

{
"name": "first",
"authors": [
"dalongrong <1141591465@qq.com>"
],
"description": "",
"main": "",
"license": "MIT",
"homepage": "",
"ignore": [
"**/.*",
"node_modules",
"bower_components",
"test",
"tests"
],
"dependencies": {
"js-shortid": "shortid#^v0.1.1"
}
}

使用

bower  install

参考文档

https://help.sonatype.com/repomanager3/bower-repositories

 
 
 
 

最新文章

  1. Linux(Centos)快速搭建SVN
  2. django多条件筛选搜索(项目实例)
  3. com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure 解决办法
  4. Spring+Mybatis+MySql+Maven 简单的事务管理案例
  5. NLTk
  6. Java [leetcode 11] Container With Most Water
  7. 再谈JSON -json定义及数据类型
  8. ASP.NET Core 2.0: 二. 开发环境
  9. JavaScript 异步开发全攻略(转)
  10. LeetCode算法题-Letter Case Permutation(Java实现)
  11. Django---路由、配置和静态文件简介
  12. vue 控制 input 的 disabled
  13. LeetCode - 498. Diagonal Traverse
  14. Ionic App中嵌入外部网页的问题
  15. 关于redis性能问题分析和优化
  16. Copycat - AppendRequest
  17. joint python文件拼接
  18. svmrank 的误差惩罚因子c选择 经验
  19. UNIX环境高级编程 第9章 进程关系
  20. 消息中间件系列之ActiveMQ的简单安装

热门文章

  1. hdu5107 线段树
  2. python连接MySQL数据库问题
  3. Vue学习笔记之Vue组件
  4. 20145307陈俊达《网络对抗》shellcode注入&amp;return to libc
  5. 20145311实验二 &quot;Java面向对象程序设计&quot;
  6. MVC webapi,Action的分别拦截器
  7. autofac 在webapi中拿到当前request的scope
  8. 【yum】yum的使用
  9. Redis之字符串
  10. git status出现 fatal: Not a git repository (or any of the parent directories): .git