-
Notifications
You must be signed in to change notification settings - Fork 173
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
Non-version package specifiers don't work #313
Comments
Originally reported in #312 (comment) |
I think this is the documented behavior: Lines 80 to 82 in fe3e5cd
Should we close as Won't fix? |
I don't think we should support git repositories (they are very complex to clone / install / pack), but it'd imo be reasonable to allow arbitrary urls (either |
As build metadata or in general? I don't think we should allow using anything but |
They could still easily call |
I suppose this is a differing issue, but the man pages of corepack (node v21+) state one can also use
https://nodejs.org/api/corepack.html To install the latest pnpm. That doesn't work for me. Neither does using * work inside my package.json. i.e.,
I also tried latest or leaving out the version altogether and it wasn't accepted. Edit: tried |
I think there are two issues:
|
Corepack rejects valid package specifiers which are not versions.
For instance the following are valid specifiers which are more specific than semver but which nevertheless are rejected by
corepack
:npm@github:npm/cli#c12ea07
yarn@https://registry.npmjs.org/yarn/-/yarn-2.4.3.tgz
output:
The text was updated successfully, but these errors were encountered: