somascope
4/2/2018 - 8:12 PM

List Installed Packages

List Installed Packages

NPM Packages

You can list all globally installed packages on your computer, or in your particular project. This lists all nested packages, which isn't always useful.

Find global packages in your Windows 10 file directory

C:\Users\Username\AppData\Roaming\npm\node_modules

List top-level packages on your computer

$ npm ls -g --depth 0

Find globally outdated packages

$ npm outdated -g --depth=0

List top-level packages in a project

$ npm ls --depth 0

Get version of a specific installed package

$ npm list bootstrap-vue

See what the latest version of a package is in the npm repo

$ npm view bootstrap-vue version

Chocolatey Packages

$ choco list --local-only