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.
Hello @Mark Stewart,
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.
Cheers,
Daniil
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.