yarnpkg / yarn

The 1.x line is frozen - features and bugfixes now happen on https://github.com/yarnpkg/berry
https://classic.yarnpkg.com
Other
41.4k stars 2.73k forks source link

yarn outdated package tries to authenticate separate package #8884

Open ezbeazy opened 2 years ago

ezbeazy commented 2 years ago

running yarn outdated prettier tries to authenticate a different package and fails

error An unexpected error occurred: "https://npm.pkg.github.com/@other-scope/other-package: unauthenticated: User cannot be authenticated with the token provided.".

The package yarn tries to authenticate for, authenticates successfully when running yarn install. But I don't understand why yarn is attempting to authenticate another package at all, when checking version information of a specific package.