Home > database >  How to resolve NPM packages from different organization(Azure Devops)
How to resolve NPM packages from different organization(Azure Devops)

Time:12-06

We have an NPM package say 'design' in say organization1, I have a pipeline which is part of the same organization that is able to resolve the package with just npmrc file. I wanted to access the packages 'design' from organization2, I am not able to read/resolve the package. pipeline throws 401.

  1. I tried setting up Service connection in Azure devops and try to use - same response
  2. tried with PAT directly on the npmrc file - same response
  3. From this enter image description here

    Note: You need to convert the PAT to base64 type and replace the token value in .npmrc file.

    To get the detailed settings, you can navigate to Azure Feed -> Connect to feed -> NPM -> Other and check the .npmrc file settings.

    enter image description here

    Update:

    To convert the PAT to base64 type, we can follow this doc: Credentials setup

  • Related