1NPM-UNINSTALL(1)                                              NPM-UNINSTALL(1)
2
3
4

NAME

6       npm-uninstall - Remove a package
7
8   Synopsis
9         npm uninstall [<@scope>/]<pkg>[@<version>]... [-S|--save|-D|--save-dev|-O|--save-optional|--no-save]
10
11         aliases: remove, rm, r, un, unlink
12
13   Description
14       This uninstalls a package, completely removing everything npm installed
15       on its behalf.
16
17       Example:
18
19         npm uninstall sax
20
21       In global mode (ie, with -g or --global appended to  the  command),  it
22       uninstalls the current package context as a global package.
23
24       npm  uninstall  takes  3 exclusive, optional flags which save or update
25       the package version in your main package.json:
26
27       · -S, --save: Package will be removed from your dependencies.
28
29       · -D, --save-dev: Package will be removed from your devDependencies.
30
31       · -O, --save-optional: Package will be removed from your optionalDepen‐
32         dencies.
33
34       · --no-save: Package will not be removed from your package.json file.
35
36
37       Further,  if you have an npm-shrinkwrap.json then it will be updated as
38       well.
39
40       Scope is optional and follows the usual rules for npm help scope.
41
42       Examples:
43
44         npm uninstall sax --save
45         npm uninstall @myorg/privatepackage --save
46         npm uninstall node-tap --save-dev
47         npm uninstall dtrace-provider --save-optional
48         npm uninstall lodash --no-save
49
50   See Also
51       · npm help prune
52
53       · npm help install
54
55       · npm help folders
56
57       · npm help config
58
59       · npm help npmrc
60
61
62
63
64                                 February 2021                NPM-UNINSTALL(1)
Impressum