Skip to content

Fails when using -p with an "@" prefixed package #10

@malouro

Description

@malouro

Using something like ypx -p @some-package-name ... fails on install where it attempts to install ${REGISTRY}/@ and ignores the rest of the package name.

Some example output:

[↯] YARN_REGISTRY="https://registry.yarnpkg.com" ypx -p @markdown-confluence/cli
[14:26:07.729] [DEBUG] [temp package] /Users/mlouro/Library/Caches/Yarn/v6/.tmp/ypx_-43527-K9AL5yXFpoZ8
yarn add v1.22.18
[1/4] 🔍  Resolving packages...
error An unexpected error occurred: "https://registry.yarnpkg.com/@: Request \"https://registry.yarnpkg.com/@\" returned a 405".
info If you think this is a bug, please open a bug report with the information provided in "/Users/mlouro/Library/Caches/Yarn/v6/.tmp/ypx_-43527-K9AL5yXFpoZ8/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.
installed: 2.794s
[14:26:10.513] [DEBUG] [temp package] /Users/mlouro/Library/Caches/Yarn/v6/.tmp/ypx_-43527-K9AL5yXFpoZ8
[14:26:10.627] [DEBUG] can't find command by 'yarn bin i'
[14:26:10.628] [DEBUG] can't find default package bin of i
[14:26:10.635] [WARN] command not found: i, might not be callable
[14:26:10.635] [DEBUG] [CWD] /Users/mlouro
[14:26:10.636] [DEBUG] [EXEC] i []
[14:26:10.638] [ERROR] command not found: i
exec: 3.092ms
ypx: 2.920s

(in this particular example, I could just do ypx @markdown-confluence/cli and it would work fine but I have another use case with a company private package where I need usage of -p and it fails 🙁)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions