Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Has Pipelines npm setup changed?

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 E401npm 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.

1 answer

0 votes

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.


Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bitbucket

Powering DevOps with Bitbucket Server & Data Center

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 ...

1,849 views 0 7
Read article

Community Events

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

Events near you