For a while now I've been using Bitbucket Pipelines to run build/lint checks on pull request.
I have an .npmrc in the root of the project and use this to authenticate with my own private repository, this has been working for about a year.
In the last week or so it's stopped working, when trying to run npm ci in the pipeline it errors out with the following:
npm ERR! code E401
npm ERR! Unable to authenticate, your authentication token seems to be invalid.
npm ERR! To correct this please trying logging in again with:
npm ERR! npm login
There's been no code changes at all and I know the token is valid because when I use it locally it works fine.
Thanks for reaching out.
Which Docker image are you using in your pipeline step that requires access to that NPM repository? Have you tried debugging your pipeline locally?
I'm asking because there's no NPM setup as such in Bitbucket Pipelines. I'm over-simplifying this, but all that Pipelines do is they run the specified commands in the specified Docker image.
Hope this helps. Let me know what you find.
Hi everyone, The Cloud team recently announced 12 new DevOps features that help developers ship better code, faster ! While we’re all excited about the new improvements to Bitbucket ...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events