also instead of writing this whole as suggested by @alsotang
Number(process.version.match(/^v(\d+\.\d+)/)[1])
(not saying this is a bad solution).
you can simply write
parseFloat(process.versions.node);
it is versions (plural) not version
to get same or (similar) result and is easy to read