在.bowerrc中Bower多个注册表URL [英] Bower multiple registry URLs in .bowerrc

查看:82
本文介绍了在.bowerrc中Bower多个注册表URL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望在Bower设置中定义多个URL,以支持使用私有内部注册表以及默认的Heroku注册表。

I am looking to define more than one URL in my Bower settings to support the use of a private internal registry as well as the default Heroku registry.

我尝试过多次遇到的设置,但似乎无法让它正常工作。

I have tried multiple settings that I have come across, but can't seem to get it working.

规格中没有任何内容表明这是可行的,但有证据证明其他人已经开始这样做了。

There is nothing in the specs that say this is possible, but there is evidence others have gotten this to work.

有人能指出我在正确的方向吗?

Can anyone point me in the right direction here?

这是可能的,如果是这样,它是如何完成的?

Is this possible, and if so, how is it done?

推荐答案

有人帮我解决了这个问题。但这是为了未来的搜索者。

Someone at work helped me with this issue. But this is for future searchers.

"registry": {
    "search": [
        "http://some.private-bower-registry.com/",
        "https://bower.herokuapp.com"
    ]
}

这篇关于在.bowerrc中Bower多个注册表URL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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