banner



How To Check Which Version Of Npm Is Installed

NPM is the package manager for nodejs modules. Information technology is used to install, update and remove packages from a nodejs application. In this tutorial you lot will learn how to find installed package version of modules on your system.

You lot can utilize npm list command to search for local packages and npm list -g for globally installed packages.

            npm list              ##List all locally installed packages                            npm list -a                ##List all globally installed packages                                                    

Discover specific package version

Yous can find the version of a specific packet by passing its name every bit an argument. For example, npm listing grunt will result in:

            npm list oauth  `-- [email protected]                      

Find all packages version

Alternatively, yous can just run npm list without passing a package proper name as an statement to encounter the versions of all the packages installed in your current projection. Use -g to discover globally installed packages.

            npm list                      

Output:

| +-- [email protected] | | `-- [e-mail protected] | +-- [electronic mail protected] | | `-- [email protected] | +-- [email protected] | +-- [email protected] | | +-- [email protected] | | | `-- [email protected] | | `-- [email protected] | +-- [email protected] | +-- [email protected] | | +-- [electronic mail protected]          

Above list shows all the packages installed including there dependencies

You lot can also add --depth=0 statement to list installed packages without their dependencies.

            npm list --depth=0                      

Find packages crave updates

To find out which packages need to be updated, you lot can use npm outdated command to list all packages installed with older versions.

            npm outdated --depth=0              ##For locally installed packages                            npm outdated -g --depth=0                ##For  globally installed packages                                                    

npm find available packages  update

Source: https://tecadmin.net/find-npm-package-version/

Posted by: villanuevafroce1969.blogspot.com

0 Response to "How To Check Which Version Of Npm Is Installed"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel