node/deps/npm/doc/cli/npm-uninstall.md

47 lines
1.1 KiB
Markdown
Raw Normal View History

2013-01-25 01:06:31 +08:00
npm-rm(1) -- Remove a package
=============================
## SYNOPSIS
2014-09-25 05:41:07 +08:00
npm uninstall [@<scope>/]<package> [--save|--save-dev|--save-optional]
npm rm (with any of the previous argument usage)
2013-01-25 01:06:31 +08:00
## DESCRIPTION
This uninstalls a package, completely removing everything npm installed
on its behalf.
Example:
npm uninstall sax
In global mode (ie, with `-g` or `--global` appended to the command),
it uninstalls the current package context as a global package.
`npm uninstall` takes 3 exclusive, optional flags which save or update
the package version in your main package.json:
* `--save`: Package will be removed from your `dependencies`.
* `--save-dev`: Package will be removed from your `devDependencies`.
* `--save-optional`: Package will be removed from your `optionalDependencies`.
2014-09-25 05:41:07 +08:00
Scope is optional and follows the usual rules for `npm-scope(7)`.
Examples:
npm uninstall sax --save
2014-09-25 05:41:07 +08:00
npm uninstall @myorg/privatepackage --save
npm uninstall node-tap --save-dev
npm uninstall dtrace-provider --save-optional
2013-01-25 01:06:31 +08:00
## SEE ALSO
* npm-prune(1)
* npm-install(1)
2013-07-25 04:23:44 +08:00
* npm-folders(5)
2013-01-25 01:06:31 +08:00
* npm-config(1)
2013-07-12 23:55:57 +08:00
* npm-config(7)
* npmrc(5)