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

corepack prepare with a range of versions is unexpected #177

Open
teppeis opened this issue Sep 3, 2022 · 0 comments
Open

corepack prepare with a range of versions is unexpected #177

teppeis opened this issue Sep 3, 2022 · 0 comments

Comments

@teppeis
Copy link
Contributor

teppeis commented Sep 3, 2022

corepack prepare command with a range of versions behaves differently than expected.

Case 1

When:

  • [email protected] is the latest published version
  • no local cache (In OSX, $HOME/.cache/node/corepack/yarn is empty)

Actually:

$ corepack prepare yarn@~3.2.0
Usage Error: Failed to successfully resolve '~3.2.0' to a valid yarn release

My expectation:
corepack installs [email protected] in the local cache.

Case 2

When:

Actually:

$ corepack prepare yarn@~3.2.0
Preparing yarn@~3.2.0...

but no additional versions are installed.
There is nothing but [email protected] in the local cache.

My expectation:
corepack installs [email protected] in the local cache.

@teppeis teppeis changed the title corepack prepare with a range of versions corepack prepare with a range of versions is unexpected Sep 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant