xxxxxxxxxx
local packages:
~$ npm list
globally installed packages:
~$ npm list -g
specific package:
~$ npm list <package>
xxxxxxxxxx
// Any of the below command will work.
npm -v
npm --v
npm -version
npm --version
xxxxxxxxxx
npm view <package_name> version <-- latest remote version
npm view <package_name> versions <-- all available remote versions
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
// How to increment your project version
Ex: 1.0.0
* npm version patch ---> 1.0.1
* npm version minor ---> 1.1.0
* npm version major ---> 2.0.0
npm version [<newversion> | major | minor | patch | premajor |
preminor | prepatch | prerelease [--preid=<prerelease-id>] | from-git]