Bower只使用https安装? [英] Bower install using only https?

查看:145
本文介绍了Bower只使用https安装?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在我们组织的数据中心的构建服务器上设置Bower,但是 git 的端口似乎并未在数据中心的防火墙上打开。我可以使用git命令行客户端通过 https:// [回购] 进行克隆,但不能使用 git:// [回购]

是否有一个开关或首选项会指示bower使用 https 来执行git clone比 git 协议?



我已经看过源代码,并考虑更改分辨率代码来替换 git:// with https:// ,但我想我会在问到这些长度之前问一问。 / p>

解决方案

你可以让git替换你的协议。运行:

  git config --global url。https://.insteadOf git:// 

使用HTTPS协议而不是Git。


I am trying to set up Bower on a build server at our organization's data center, but git's port does not appear to be open on the data center's firewall. I can use the git command line client to clone via https://[repo], but not git://[repo].

Is there a switch or preference which will instruct bower to perform git clone using https rather than the git protocol?

I've looked at the source, and considered changing the resolution code to replace git:// with https://, but I figured I'd ask before I go to those lengths.

解决方案

You can make git replace the protocol for you. Just run:

git config --global url."https://".insteadOf git://

to use HTTPS protocol instead of Git.

这篇关于Bower只使用https安装?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆