blob: a38e3ce207e578939fc534ab86fbee106985216e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
npm-list(1) -- List installed packages
======================================
## SYNOPSIS
npm list
npm ls
## DESCRIPTION
This command will print to stdout all the versions of packages that are
either installed or available in the registry, with their tags and whether
or not they're active and/or stable.
To filter a single package or state, you can provide words to filter on
and highlight (if appropriate). For instance, to see all the stable
packages, you could do this:
npm ls stable
Another common usage is to find the set of all packages that are
installed. This can be accomplished by doing this:
npm ls installed
Strings are matched using the JavaScript "split" function, so regular
expression strings are ok. However, the highlighting is a simple
split/join, so regexps probably won't get the funky colors.
You can also provide default arguments that are appended to all npm ls
executions
npm config set listopts remote
This will append the remote argument each time `npm ls` is called.
|