process.version


process.version 属性返回Node.js的版本信息。

console.log(`Version: ${process.version}`);

The process.version property returns the Node.js version string.

console.log(`Version: ${process.version}`);