0
votes

I have a private packages feed on Azure DevOps (formerly VSTS) with a few packages. I have a project configured (through .npmrc) to use that feed. vsts-npm-auth -config .npmrc (to configure auth for npm with the feed) completed with success.
If I run npm install, the modules installation runs successfully.
If I delete the node modules folder, the package lock and run pnpm install instead I get a 401 Unauthorized error. Computer is running windows 10 (latest public ring).
My question is: how to configure pnpm to run properly with an azure devops private feed?

1
I am not sure how azure devops works but I know that pnpm can read the configs from .npmrc and works with the auth tokens specified there. Maybe pnpm cannot find the global npmrc file for some reason?Zoltan Kochan
The vsts auth command I was mentioning stores the token in the windows identity store to avoid getting token stored on the repo through the file. Maybe the issue then is that pnpm is not looking in the windows identity store?baywet
Do you use vsts-npm-auth for auth?Eddie Chen - MSFT
Yes, and it works with npmbaywet
That's weird, it works at my side.Eddie Chen - MSFT

1 Answers

0
votes

It started working after upgrading to pnpm v 2.17.8 so I guess it was a temporary issue/bug.