Is your feature request related to a problem? Please describe.
Following https://github.com/nodejs/node/discussions/40957, Node.js version format contains a v-prefix prior the version, e.g. node -v returns v17.1.0. According to the https://semver.org/#is-v123-a-semantic-version, v17.1.0 is not semver compliant.
Describe the solution you'd like
Drop v from the version number and return 17.1.0 for node -v.
It should not be a problem at all if implemented in a major version:
MAJOR version when you make incompatible API changes
Besides, if a Node.js version check implemented properly, not just substringing the first char, it should not break anything.
Is your feature request related to a problem? Please describe.
Following https://github.com/nodejs/node/discussions/40957, Node.js version format contains a
v-prefix prior the version, e.g.node -vreturnsv17.1.0. According to the https://semver.org/#is-v123-a-semantic-version,v17.1.0is not semver compliant.Describe the solution you'd like
Drop
vfrom the version number and return17.1.0fornode -v.It should not be a problem at all if implemented in a major version:
Besides, if a Node.js version check implemented properly, not just substringing the first char, it should not break anything.