Nodejs version: Difference between revisions
From wikinotes
Line 18: | Line 18: | ||
= NodeJS info = | = NodeJS info = | ||
<blockquote> | <blockquote> | ||
<syntaxhighlight lang="bash"> | |||
node -v # nodejs version | |||
</syntaxhighlight> | |||
<syntaxhighlight lang="javascript"> | <syntaxhighlight lang="javascript"> | ||
const process = require('process'); | const process = require('process'); |
Revision as of 23:16, 14 December 2021
NodeJS Build Versioning
node.js version release of nodejs you are using npm version npm is installed with nodejs, but versioned separately V8 version the chromium javascript engine version built into this nodejs version NODE_MODULE_VERSION
C extensions built in node are built using a specific target node module version.
I think this might be a C runtime.
This is generally stable for a wide range of nodejs versions.See this version-info chart.
NodeJS info
node -v # nodejs versionconst process = require('process'); process.version // 'v10.1.1'