Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
malouro opened this issue May 21, 2024 · 0 comments
Open

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

malouro opened this issue May 21, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@malouro
Copy link

malouro commented May 21, 2024

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 🙁)

@bluelovers bluelovers added the bug Something isn't working label May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants