check node package version code example
Example 1: check node version
node --version
//or
node -v
//v12.15.0
Example 2: npm check package version
local packages:
~$ npm list
globally installed packages:
~$ npm list -g
specific package:
~$ npm list <package>
Example 3: find node version
node -v
OR
node --version
Example 4: find npm version
npm --version