To find the version of a node package one can use npm list (optionally -g for global). Another option is to use javascript code and print version using object.version.
node package version using npm
To print version of package react
$ npm list -g react /usr/lib └── react@0.14.7
node package version using javascript
var React = require("react") console.log("React version=" + React.version)
Env: node version v10.24.1