Skip to content

403 error while installing scoped packages using yarn #2063

Discussion options

You must be logged in to vote

Okay, this issue occurs when the tarball name does not match with the requested package name.

For example, if you have a scoped package such verdaccio and then you modify a part of your logic to return with the same package when the user requests @verdaccio/verdaccio then yarn does not send the authorization header even though you had set always-auth=true. In order to solve this you need to ensure that the requested package name matches with the tarball name (or at least the package name used in yarn add command should be the same).

Note that this issue only occurs with yarn and is likely an issue with the yarn package manager and the way it makes the requests.

Thank you @juanpicado for y…

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
5 replies
@prasannamestha
Comment options

@juanpicado
Comment options

@prasannamestha
Comment options

@juanpicado
Comment options

@prasannamestha
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by prasannamestha
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #2062 on January 19, 2021 20:29.