I'm using npmrc
to setup my corporate (using CodeArtifact) and public (using registry.npmjs.org
) NPM registries.
The problem is that, even with the public profile selected, I keep getting an error that the authentication to CodeArtifact is missing. The only way to get rid of this is authenticating on CodeArtifact, which causes the auth token to be set to both profiles. After that, regardless the profile selected, both uses CodeArtifact as a registry.
I tried extreme measures and deleted all my profiles and create a single one set to registry.npmjs.org
. Still, NPM (and Yarn) complain about missing auth to CodeArtifact.
Any ideas?