npm --version
npm -v
// Any of the below command will work.
npm -v
npm --v
npm -version
npm --version
npm show {pkg} version
npm view <package> version
command syntext
npm view your-packageName version
or
npm list your-packageName
or get all installed package
npm list
or find latest version
npm show your-packageName version
example
npm view firebase version
Above command will return the firebase version installed in my node project
To find any npm package version which is installed in your app you can find from package.json file
or you can command.
npm view npm versions --json
find any package version list
syntax
npm view package-name versions --json
Open your terminal and type npm -v will return your installed npm version.