Dav*_*ith 7 github bower polymer
我认识到这可能违反惯例:
我正在尝试安装一个bower.json不驻留在存储库顶层的bower组件,因此产生了以下效果:
bower install https://github.com/myrepo/my-components/tree/master/my-specific-component
Run Code Online (Sandbox Code Playgroud)
然而凉亭响应如下:
bower not-cached https://github.com/my-repo/my-components/tree/master/my-specific-component#*
bower resolve https://github.com/my-repo/my-components/tree/master/my-specific-component#*
bower download https://github.com/my-repo/my-components/tree/master/my-specific-component
bower EHTTP Status code of 404
Run Code Online (Sandbox Code Playgroud)
如何从像这样的存储库的子目录中安装组件?
小智 8
如果您的git存储库是公共的,那么bower 安装来自https://github.com/org/repo/archive/tag.tar.gz.如果您的git存储库是私有的bower,则执行给定url的git clone.
由于git中没有可以与git clone一起使用的url来克隆存储库的子目录,也没有用于下载子目录的tar的url,因此bower当前不支持从存储库的子目录进行安装.
| 归档时间: |
|
| 查看次数: |
3152 次 |
| 最近记录: |