作者:跳花妹535 | 来源:互联网 | 2023-05-27 03:59
我认识到这可能违反惯例:
我正在尝试安装一个bower.json不驻留在存储库顶层的bower组件,因此产生了以下效果:
bower install https://github.com/myrepo/my-components/tree/master/my-specific-component
然而凉亭响应如下:
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
如何从像这样的存储库的子目录中安装组件?
1> 小智..:
如果您的git存储库是公共的,那么bower 安装来自https://github.com/org/repo/archive/tag.tar.gz.如果您的git存储库是私有的bower,则执行给定url的git clone.
由于git中没有可以与git clone一起使用的url来克隆存储库的子目录,也没有用于下载子目录的tar的url,因此bower当前不支持从存储库的子目录进行安装.