'Yarn install azure pipeline "error an unexpected error occurred : [azure-registry] : Request failed \"401 Unauthorized\""

I'm trying to build my Quasar project on an azure pipeline.

My pipeline worked perfectly for a week but yesterday, I don't know why, I can't execute "yarn install" without seeing this error.

error An unexpected error occurred: "{my-azure}/npm/registry/@nestjs/elasticsearch/-/elasticsearch-8.0.0.tgz: Request failed \"401 Unauthorized\""

Each time, it's a different library.

I try to delete my yarn lock but then I have another error when i'm doing yarn install

Couldn't find package "{random library}" on te "npm" registry...

I don't know what to do...



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source