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

Could not parse version with letters inside #583

Closed
probil opened this issue Oct 28, 2019 · 3 comments
Closed

Could not parse version with letters inside #583

probil opened this issue Oct 28, 2019 · 3 comments

Comments

@probil
Copy link

probil commented Oct 28, 2019

I can't install specific version of the package because volta couldn't parse version number despite it's a valid version for node.

I suppose volta validates version by semver .

$ volta install elm@elm0.19.0
error: Could not parse version "elm0.19.0"
@charlespierce
Copy link
Contributor

Hi @probil, thanks for bringing this up! We actually have this tracked as #491, as the version string elm0.19.0 is, as far as npm is concerned, a tag, not an actual version name. Though we don't currently support this, we actually have made a number of architectural changes recently that should make adding support for tags relatively straightforward.

Until then, however, you can use the suggestion from the linked issue, looking at https://www.npmjs.com/package/elm under "Versions", the tag elm0.19.0 appears to point at the version 0.19.0-no-deps, so you can run volta install elm@0.19.0-no-deps and get that version installed.

@probil
Copy link
Author

probil commented Oct 28, 2019

Oh, I didn't know that there is such a thing as tags in npm. 🤔
I'll give it a try.
Thanks for your response @charlespierce

@probil
Copy link
Author

probil commented Nov 1, 2019

Thanks @charlespierce
Your suggestion helped to resolve the issue
I'm closing it in favor of #491

@probil probil closed this as completed Nov 1, 2019
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

2 participants