Bower使用旧注册表而不是新注册表

问题描述 投票:5回答:0

当我进行咕噜声构建时,我的凉亭刚刚开始出错。 特别是,我看到的错误如下:

Warning: Request to https://bower.herokuapp.com/packages/angular failed with 502 Use --force to continue.

做一些研究,看起来注册表服务器已从bower.herokuapp.com更改为registry.bower.io。 但是,我的凉亭仍在击中旧服务器。

我的凉亭更新到最新版本:1.8.4。 我已经清除了我的凉亭缓存,以防万一。

不知道下一步该怎么做。

更新:

我能够在我的.bowerrc文件中本地指定注册表,但我仍然想知道如何让它在默认情况下命中新的注册表。

{
    "directory": "app/bower_components",
    "registry": {
        "search": [
            "https://registry.bower.io"
        ]
    }
}
bower
© www.soinside.com 2019 - 2024. All rights reserved.