equal
deleted
inserted
replaced
2 ===================== |
2 ===================== |
3 npm package manager |
3 npm package manager |
4 ===================== |
4 ===================== |
5 .. contents:: |
5 .. contents:: |
6 :local: |
6 :local: |
|
7 |
|
8 NPM package versions & tags |
|
9 =========================== |
|
10 |
|
11 To list available tags use command ``npm view $PGK``:: |
|
12 |
|
13 npm view npm |
|
14 npm v npm |
|
15 npm show npm |
|
16 |
|
17 It is a common practice for modules to provide following two tags:: |
|
18 |
|
19 latest |
|
20 next |
|
21 |
|
22 To get all available versions:: |
|
23 |
|
24 npm show lodash@* version |
|
25 npm show lodash versions |
|
26 npm view npm --json |
|
27 |
|
28 To get the currently used version in the ``package.json``-kind of project:: |
|
29 |
|
30 npm list lodash |
7 |
31 |
8 Prune unused packages |
32 Prune unused packages |
9 ===================== |
33 ===================== |
10 |
34 |
11 Prune all:: |
35 Prune all:: |