Unable to Authenticate Azure Artifacts npm Registry in TeamCity

Description:

I'm encountering an authentication issue when trying to connect my Azure Artifacts npm registry to TeamCity. I've followed the steps below to establish the connection, but I'm receiving a 401 Unauthorized error.

 

Steps Taken:

Created an NPM Registry Connection:

  • In the TeamCity root project settings, I navigated to "Connections" and added a new "NPM Registry Connection."

Configured Connection Details:

  • I entered the following details:
    • URL: https://pkgs.dev.azure.com/<Organization>/<project>/_packaging/<feed>/npm/registry (Replace <Organization>, <project>, and <feed> with your specific values)
    • Authentication: Token (selected from the dropdown) token have full access in azure.

Tested Connection:

  • The test connection failed, returning a 401 Unauthorized error.

Applied Connection in Build Features (if applicable):

  • If I have a dedicated "NPM Task" build step, I selected the created "NPM Registry Connection" under the "NPM Registry Connection" option.

Build Failure:

  • When I build the project, the npm installation step fails with an error message. I attached scrrenshot for the same.
0
1 comment
Hi,

Thank you for bringing the issue to our attention. We had a bug entry on our tracker: https://youtrack.jetbrains.com/issue/TW-72901. 

Feel free to vote for this issue and monitor its progress through the provided link.
0

Please sign in to leave a comment.