Skip to content

Downloading Scoped + Private packages fails on npm-registry (Tarball Fetcher) #1134

@johndagostino

Description

@johndagostino

Do you want to request a feature or report a bug?

feature

What is the current behavior?

Testing out the recently merged _authToken support. Package info is correctly downloaded.

But npm-registry.js cannot determine the correct scope when downloading a package tarball as tarball fetcher passes in the full path so getScope() fails to determine the correct scope.

This means private scoped packages get the registry url switched to the yarn mirror.

What is the expected behavior?

Tarball download respects the always-auth and _authToken configuration options when downloading packages.

Please mention your node.js, yarn and operating system version.

master branch - 8f4f01e

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions