2015-05-01 16:27:33 +08:00
|
|
|
.TH "NPM\-RM" "1" "May 2015" "" ""
|
2011-11-27 01:21:03 +08:00
|
|
|
.SH "NAME"
|
2014-09-25 05:41:07 +08:00
|
|
|
\fBnpm-rm\fR \- Remove a package
|
|
|
|
.SH SYNOPSIS
|
|
|
|
.P
|
|
|
|
.RS 2
|
2014-11-05 07:08:12 +08:00
|
|
|
.nf
|
2014-09-25 05:41:07 +08:00
|
|
|
npm uninstall [@<scope>/]<package> [\-\-save|\-\-save\-dev|\-\-save\-optional]
|
2014-03-20 00:25:40 +08:00
|
|
|
npm rm (with any of the previous argument usage)
|
2014-11-05 07:08:12 +08:00
|
|
|
.fi
|
2014-09-25 05:41:07 +08:00
|
|
|
.RE
|
|
|
|
.SH DESCRIPTION
|
|
|
|
.P
|
2011-11-27 01:21:03 +08:00
|
|
|
This uninstalls a package, completely removing everything npm installed
|
|
|
|
on its behalf\.
|
2014-03-20 00:25:40 +08:00
|
|
|
.P
|
|
|
|
Example:
|
2014-09-25 05:41:07 +08:00
|
|
|
.P
|
|
|
|
.RS 2
|
2014-11-05 07:08:12 +08:00
|
|
|
.nf
|
2014-03-20 00:25:40 +08:00
|
|
|
npm uninstall sax
|
2014-11-05 07:08:12 +08:00
|
|
|
.fi
|
2014-09-25 05:41:07 +08:00
|
|
|
.RE
|
2014-03-20 00:25:40 +08:00
|
|
|
.P
|
|
|
|
In global mode (ie, with \fB\-g\fR or \fB\-\-global\fR appended to the command),
|
|
|
|
it uninstalls the current package context as a global package\.
|
|
|
|
.P
|
|
|
|
\fBnpm uninstall\fR takes 3 exclusive, optional flags which save or update
|
|
|
|
the package version in your main package\.json:
|
2014-09-25 05:41:07 +08:00
|
|
|
.RS 0
|
|
|
|
.IP \(bu 2
|
2014-03-20 00:25:40 +08:00
|
|
|
\fB\-\-save\fR: Package will be removed from your \fBdependencies\fR\|\.
|
2014-09-25 05:41:07 +08:00
|
|
|
.IP \(bu 2
|
2014-03-20 00:25:40 +08:00
|
|
|
\fB\-\-save\-dev\fR: Package will be removed from your \fBdevDependencies\fR\|\.
|
2014-09-25 05:41:07 +08:00
|
|
|
.IP \(bu 2
|
2014-03-20 00:25:40 +08:00
|
|
|
\fB\-\-save\-optional\fR: Package will be removed from your \fBoptionalDependencies\fR\|\.
|
2014-09-25 05:41:07 +08:00
|
|
|
|
|
|
|
.RE
|
|
|
|
.P
|
|
|
|
Scope is optional and follows the usual rules for npm help 7 \fBnpm\-scope\fR\|\.
|
2014-03-20 00:25:40 +08:00
|
|
|
.P
|
|
|
|
Examples:
|
2014-09-25 05:41:07 +08:00
|
|
|
.P
|
|
|
|
.RS 2
|
2014-11-05 07:08:12 +08:00
|
|
|
.nf
|
2014-03-20 00:25:40 +08:00
|
|
|
npm uninstall sax \-\-save
|
2014-09-25 05:41:07 +08:00
|
|
|
npm uninstall @myorg/privatepackage \-\-save
|
2014-03-20 00:25:40 +08:00
|
|
|
npm uninstall node\-tap \-\-save\-dev
|
|
|
|
npm uninstall dtrace\-provider \-\-save\-optional
|
2014-11-05 07:08:12 +08:00
|
|
|
.fi
|
2014-09-25 05:41:07 +08:00
|
|
|
.RE
|
|
|
|
.SH SEE ALSO
|
|
|
|
.RS 0
|
|
|
|
.IP \(bu 2
|
2011-11-27 01:21:03 +08:00
|
|
|
npm help prune
|
2014-09-25 05:41:07 +08:00
|
|
|
.IP \(bu 2
|
2011-11-27 01:21:03 +08:00
|
|
|
npm help install
|
2014-09-25 05:41:07 +08:00
|
|
|
.IP \(bu 2
|
2014-09-17 06:38:50 +08:00
|
|
|
npm help 5 folders
|
2014-09-25 05:41:07 +08:00
|
|
|
.IP \(bu 2
|
2011-11-27 01:21:03 +08:00
|
|
|
npm help config
|
2014-09-25 05:41:07 +08:00
|
|
|
.IP \(bu 2
|
2014-09-17 06:38:50 +08:00
|
|
|
npm help 7 config
|
2014-09-25 05:41:07 +08:00
|
|
|
.IP \(bu 2
|
2014-09-17 06:38:50 +08:00
|
|
|
npm help 5 npmrc
|
2014-09-25 05:41:07 +08:00
|
|
|
|
|
|
|
.RE
|
2011-11-27 01:21:03 +08:00
|
|
|
|