Checkout how to troubleshoot failures and collect debug logs: https://docs.microsoft.com/en-us/vsts/build-release/actions/troubleshooting
Server - Azure Pipelines or TFS on-premises?
https://microsoft.visualstudio.com/Xbox.Ambassadors/_build/results?buildId=14821855
Agent - Hosted or Private:
Hosted VS2017
This message started coming today and failing the build during npm install.
Unable to authenticate, need: Bearer authorization_uri=https://login.windows.net/*, Basic realm="https://pkgsprodscussu1.app.pkgs.visualstudio.com/", TFS-Federated
had an expired npmrc token
Similar solution, I just copied the entire text after clicking on "Generate npm credentials", without looking at the actual text.
This happens if password recently expired or changed, will need to create new PAT, convert to base64 and update in your npmrc file. Detailed documentation is here https://docs.microsoft.com/en-gb/azure/devops/artifacts/npm/npmrc?view=azure-devops&tabs=windows#set-up-authentication-on-your-dev-box
Hi, already updated the PAT, still 401. Is there another issue that might cause that?
Most helpful comment
had an expired npmrc token