npmazure-devopsazure-artifacts

401 Unauthorized: [Package name] error during npm install from azure DevOps feed


I'm using AzureDevop artifacts for npm feeds. When I try to do npm install I'm getting 401 Unauthorized exception.

Any idea what is causing it ?


Solution

  • I figured it out. My authorization token expired. Just needed to go to feed/connect-to-feed and regenerate token for npm and put it into .npmrc file.