Skip to content

Private npm registry behaviour differs compared to npm #1895

@KidkArolis

Description

@KidkArolis

This works:

npm login
npm install @something/private

This does not work:

npm login
yarn add @something/private

This is a bit tricky to reproduce if you don't have a private npm registry (or any private registry) access.

The config that npm login creates by default is:

registry=https://registry.qubit.com/
//registry.qubit.com/:_authToken=token

Looks like npm sends this token to the registry when installing private packages, but yarn doesn't. It's probably closely related to #1666 .

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