Closed mightyiam closed 5 years ago
Didn't know about that way of specifying versions with nvm
. Is there a module that could resolve these kind of versions to semver-like ones?
There's bash code for reference, if that helps :nauseated_face: https://github.com/creationix/nvm/blob/master/nvm.sh
It seems like a syntax invented for nvm, because there is no mention of it being based on anything else in the docs: https://github.com/creationix/nvm#long-term-support
Resolving these requires hitting some official Node.js server to get the active LTS versions. Took me a long while, but here is something that should have similar code, at least: https://www.npmjs.com/package/get-node-versions
Oh, I don't think it's worth so much effort for such a simple thing. I'll leave this open, so that we can at least add a helpful error message.
Thank you for your effort to help find all this stuff though!
@vadimdemedes This again makes me wonder how hard/easy it would be to switch to a custom container with NVM preinstalled and just switch dynamically.
But my open source packages are all using this syntax!