[英]bower register fails with ETIMEDOUT
after hours of search, I try my luck here now: I have a repository, which I would like to register as a bower component. 经过数小时的搜索,我现在在这里尝试一下运气:我有一个存储库,我想将其注册为Bower组件。 Running bower register
results directly in an ETIMEDOUT error - from my local machiene as well as from my server. 运行bower register
直接导致ETIMEDOUT错误-来自本地机器以及服务器。
This is the stack: 这是堆栈:
bower dwbn-theme#* resolve git://gitlab.dwbn.org/dw-connect/dwbn-theme.git#*
bower dwbn-theme#* checkout v1.1.6
bower dwbn-theme#* resolved git://gitlab.dwbn.org/dw-connect/dwbn-theme.git#1.1.6? Registering a package will make it installable via the registry (https://bower.herokuapp.com), continue? Yes
bower dwbn-theme register git://gitlab.dwbn.org/dw-connect/dwbn-theme.git
bower ETIMEDOUT Request to https://bower.herokuapp.com/packages?access_token=658cbd3fe9b6251d2a910528e9959c4027c51134 failed: ETIMEDOUT
I checked th internet and the closest answer I could find was connected to a proxy server (which I dont have): Bower install - failed with ETIMEDOUT 我检查了互联网,发现的最接近的答案已连接到代理服务器(我没有): Bower安装-ETIMEDOUT失败
Using npm config delete proxy
as suggested also did not help. 按照建议使用npm config delete proxy
也无济于事。
Is there anything else, whch could solve this issue? 还有什么可以解决这个问题的吗?
Thx a lot Andreas 非常感谢Andreas
Just an short update, how we solved this in the end: 只是简短的更新,我们如何最终解决此问题:
Bower allows to include also a repository directly without registering it and we simply went this way in the bower.json: Bower允许直接在不注册的情况下直接包含存储库,我们只是在bower.json中采用了这种方式:
"dependencies": {
"dwbn-theme": "ssh://git@gitlab.dwbn.org/dw-connect/dwbn-theme.git#~1.1",
"bootstrap": "~3.3",
"jquery": "~2.1",
"lama-on-tour-flickr-stream": "ssh://git@gitlab.dwbn.org/dw-connect/lama-on-tour-flickr-stream.git#~1.0"
}
Since the dwbn-theme is verry specific to our charity, there is also no additional benefit to make it public worldwide. 由于dwbn主题确实针对我们的慈善机构,因此在全球范围内公开也没有任何其他好处。
Hope this helps 希望这可以帮助
Andreas 安德烈亚斯
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.