xxxxxxxxxx
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.
xxxxxxxxxx
local packages:
~$ npm list
globally installed packages:
~$ npm list -g
specific package:
~$ npm list <package>
xxxxxxxxxx
npm view <package_name> version <-- latest remote version
npm view <package_name> versions <-- all available remote versions