A CLI tool that refreshes Azure DevOps Artifacts and GitHub Packages npm authentication on your machine. It reads your project .npmrc, obtains an access token via Azure CLI (no app registration required), and writes short-lived tokens (valid ~1 hour) to your user ~/.npmrc and optionally project .yarnrc.yml. Current stable version is 1.0.5. Key differentiators: simple setup with no app registration, supports Yarn Berry, and works with scoped registries. Works on Node.js with Azure CLI.
npm install best-vsts-npm-authVerified import paths — ran on the pinned version, not inferred.
Shows installation and common CLI usage to refresh npm authentication for Azure DevOps or GitHub Packages.
Run 'best-vsts-npm-auth' again to refresh tokens.
Expect tokens in ~/.npmrc. Check project .npmrc for any overriding settings.
Install Azure CLI from https://docs.microsoft.com/en-us/cli/azure/install-azure-cli and run 'az login'.
Ensure your .npmrc includes registry settings for Azure DevOps or GitHub Packages.
Run 'az login' and then retry the tool.
No dependency data recorded yet.