private-bower
private-bower copied to clipboard
public.registry value on config file needs to be updated
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": []
},
...
}
No, the client needs to follow redirects! https://github.com/Hacklone/private-bower/blob/master/lib/service/packageStores/publicPackageStore.js#L137
But it doesn't. We also updated to the new URL and everything works again.
Does not work for me too.