Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Has Pipelines npm setup changed?

Mark Stewart
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 6, 2020

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
Daniil Penkin
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 6, 2020

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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events