Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/amazon-s3/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Github 用人工装置安装凉亭_Github_Bower_Artifactory - Fatal编程技术网

Github 用人工装置安装凉亭

Github 用人工装置安装凉亭,github,bower,artifactory,Github,Bower,Artifactory,我正在尝试设置一个操作,其中只有通过artifactory服务器才能访问外部回购协议。我已经关注了这个网页上的鲍尔信息 我可以成功地完成bower art resolver的npm安装,如前所述(利用artifactory中NPMJ的npm远程存储库),但是尝试执行bower引导安装的示例失败,因为bower正在尝试查找git://github.com/twbs/bootstrap.git 由于防火墙的原因,我无法访问github.com 如果拥有bower注册表远程存储库不足以使安装工作正常,

我正在尝试设置一个操作,其中只有通过artifactory服务器才能访问外部回购协议。我已经关注了这个网页上的鲍尔信息

我可以成功地完成bower art resolver的npm安装,如前所述(利用artifactory中NPMJ的npm远程存储库),但是尝试执行bower引导安装的示例失败,因为bower正在尝试查找git://github.com/twbs/bootstrap.git 由于防火墙的原因,我无法访问github.com

如果拥有bower注册表远程存储库不足以使安装工作正常,那么如何使完整的bower工作流正常工作?人工VCS功能有什么发挥作用的方法吗?我如何让bower利用这一点而不是尝试访问github.com


此防火墙场景似乎是存储库服务器的常见用例,因此我确信我遗漏了一些内容。

确保您正在执行以下操作:

(1) 在Bower注册表中创建代理。请注意,Artifactory需要同时访问Bower注册表和Github。
(2) 将Bower配置为使用您在上一步中创建的Artifactory存储库作为Bower注册表。这应该在文件中完成,例如:

{
  "registry": "http://localhost:8081/artifactory/api/bower/bower-repo"
}
bower-art install bootstrap
(3) 安装软件包时,请使用bower art而不是bower,例如:

{
  "registry": "http://localhost:8081/artifactory/api/bower/bower-repo"
}
bower-art install bootstrap

我遗漏了你答案(1)中提到的部分。我没有启用VCS github项,我认为只需要bower检查项。读网页的速度越慢,我就能看到我过去读过的东西。