I get the below error when using runner for the below pipeline. Is it because I am not using a custom docker image to run node?
Thank you for contacting Atlassian Community! I'm Norbert from Bitbucket Cloud Support, it's nice to meet you!
Based on my observation your build fails as the NPM is not able to authenticate with the remote repository.
Based on the following link, removing the ".npmrc" resolves this issue: https://stackoverflow.com/questions/48823562/npm-install-resulting-in-401-unauthorized-for-private-repo
Can I ask you to try to remove this file and let us know if it resolves the issue?
I'm looking forward to hear from you, Ajay.
Atlassian Bitbucket Cloud Support
Hi @Norbert C
Thanks for the reply.
As it tuned out I was using private modules in my package.json and therefore the 401. I followed the documentation mentioned here to configure the .npmrc file and it works fine.
If you are using private modules from either the public npm registry or your own private registry you can simply check in a .npmrc file at the root of your repository using repository variables. To avoid conflict with the local ~/.npmrc file during development you can simply name it .npmrc_config and rename it as part of the pipeline script.
& in the Pipeline
- mv .npmrc_config .npmrc
- npm install
Hi, Bitbucket community! Are you a DevOps practitioner (or know one in your network)? Do you have DevOps tips, tricks, or learnings you'd like to share with the community? If so, we'd love to hea...
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