Installation of private npm package from CodeArtifact fails with "401 Unauthorized" with yarn and yarn.lock

Viewed 215

We have a private npm package in CodeArtifact that we want to install as part of our package.json.

We are using Yarn as a package manager and have a yarn.lock file to control the versions. When trying to install with yarn install --frozen-lockfile it's failing on the installation of the private package with Request failed \"401 Unauthorized\.

When using npm it's working fine. But we want to stick with yarn. Anybody experienced the same issue?

0 Answers
Related