berry icon indicating copy to clipboard operation
berry copied to clipboard

[Bug?]: Alias packages cannot be fetched from registry

Open Tom-O-Chan opened this issue 3 years ago • 0 comments

Self-service

  • [ ] I'd be willing to implement a fix

Describe the bug

When trying to add a package using an alias, the following error occurs:

% yarn add custom@react    
➤ YN0000: ┌ Resolution step
➤ YN0016: │ custom@npm:react: Registry failed to return tag "react"
➤ YN0000: └ Completed in 0s 283ms
➤ YN0000: Failed with errors in 0s 284ms

According to the Protocols page, this should be allowed

To reproduce

Run yarn add custom@react

yarn add custom@react;

(Tried using the sandbox, but kept getting 502: Bad Gateway)

Environment

System:
    OS: macOS 12.4
    CPU: (8) arm64 Apple M1
Binaries:
    Node: 14.18.3 - /private/var/folders/0k/ssx0ng791616ypyh8y1z2j7m0000gn/T/xfs-014bbb9f/node
    Yarn: 3.2.1 - /private/var/folders/0k/ssx0ng791616ypyh8y1z2j7m0000gn/T/xfs-014bbb9f/yarn
    npm: 6.14.15 - ~/.nvm/versions/node/v14.18.3/bin/npm
npmPackages:
    jest: ^28.1.2 => 28.1.2

Additional context

No response

Tom-O-Chan avatar Aug 10 '22 13:08 Tom-O-Chan