somascope
10/31/2018 - 9:20 PM

npm commands

Updating things

$ npm outdated

$ npm update

List Installed 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.

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

Show data about a package

Show data such as latest version, their dependencies, and other details

$ npm check

$ npm view @vue/cli