private-bower icon indicating copy to clipboard operation
private-bower copied to clipboard

public.registry value on config file needs to be updated

Open Naxus28 opened this issue 7 years ago • 3 comments

I have tried for a couple of hours to register a private package with no success although I was following the docs. After many trial and errors I decided to visit the "public.registry" url provided in the docs --http://bower.herokuapp.com/packages-- which redirects to https://registry.bower.io/packages. I replaced public.registry's default value for https://registry.bower.io/packages and only then I was able to register my package.

{
   ...

    "public": {
        "disabled": false,
        "registry": "https://registry.bower.io/packages", // this line changed
        "registryFile": "./bowerRepositoryPublic.json",
        "whitelist": [],
        "blacklist": []
    },

   ...
}

Naxus28 avatar Oct 04 '17 19:10 Naxus28

No, the client needs to follow redirects! https://github.com/Hacklone/private-bower/blob/master/lib/service/packageStores/publicPackageStore.js#L137

davvvid1 avatar Oct 06 '17 09:10 davvvid1

But it doesn't. We also updated to the new URL and everything works again.

chrisse27 avatar Oct 23 '17 09:10 chrisse27

Does not work for me too.

piermorosini avatar Oct 24 '17 07:10 piermorosini