1 npm-uninstall(1) -- Remove a package
2 =============================
6 npm uninstall [@<scope>/]<package> [--save|--save-dev|--save-optional]
7 npm rm (with any of the previous argument usage)
11 This uninstalls a package, completely removing everything npm installed
18 In global mode (ie, with `-g` or `--global` appended to the command),
19 it uninstalls the current package context as a global package.
21 `npm uninstall` takes 3 exclusive, optional flags which save or update
22 the package version in your main package.json:
24 * `--save`: Package will be removed from your `dependencies`.
26 * `--save-dev`: Package will be removed from your `devDependencies`.
28 * `--save-optional`: Package will be removed from your `optionalDependencies`.
30 Scope is optional and follows the usual rules for `npm-scope(7)`.
34 npm uninstall sax --save
35 npm uninstall @myorg/privatepackage --save
36 npm uninstall node-tap --save-dev
37 npm uninstall dtrace-provider --save-optional