我知道这可能违反约定:
我正在尝试安装Bower组件,其bower.json不在存储库的顶层,因此具有以下作用:
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
如何从这样的存储库的子目录中安装组件?
如果您的git仓库是公共的,那么Bower将从https://github.com/org/repo/archive/tag.tar.gz安装。如果您的git资料库是私人Bower,请执行给定网址的git克隆。
由于git中没有可以与git clone一起使用的url来克隆存储库的子目录,也没有用于下载子目录的tar的url,因此bower当前不支持从存储库的子目录进行安装。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句