2021-01-07 16:12:19 -05:00
|
|
|
.TH "NPM\-UNINSTALL" "1" "January 2021" "" ""
|
2011-11-26 09:21:03 -08:00
|
|
|
.SH "NAME"
|
2019-11-18 21:01:39 +02:00
|
|
|
\fBnpm-uninstall\fR \- Remove a package
|
2019-11-05 14:55:08 -05:00
|
|
|
.SS Synopsis
|
2014-09-24 14:41:07 -07:00
|
|
|
.P
|
|
|
|
.RS 2
|
2014-11-04 15:08:12 -08:00
|
|
|
.nf
|
2017-07-14 10:52:48 -07:00
|
|
|
npm uninstall [<@scope>/]<pkg>[@<version>]\.\.\. [\-S|\-\-save|\-D|\-\-save\-dev|\-O|\-\-save\-optional|\-\-no\-save]
|
2015-10-09 23:13:57 -07:00
|
|
|
|
|
|
|
aliases: remove, rm, r, un, unlink
|
2014-11-04 15:08:12 -08:00
|
|
|
.fi
|
2014-09-24 14:41:07 -07:00
|
|
|
.RE
|
2019-11-05 14:55:08 -05:00
|
|
|
.SS Description
|
2014-09-24 14:41:07 -07:00
|
|
|
.P
|
2011-11-26 09:21:03 -08:00
|
|
|
This uninstalls a package, completely removing everything npm installed
|
|
|
|
on its behalf\.
|
2014-03-19 09:25:40 -07:00
|
|
|
.P
|
|
|
|
Example:
|
2014-09-24 14:41:07 -07:00
|
|
|
.P
|
|
|
|
.RS 2
|
2014-11-04 15:08:12 -08:00
|
|
|
.nf
|
2014-03-19 09:25:40 -07:00
|
|
|
npm uninstall sax
|
2014-11-04 15:08:12 -08:00
|
|
|
.fi
|
2014-09-24 14:41:07 -07:00
|
|
|
.RE
|
2014-03-19 09:25:40 -07:00
|
|
|
.P
|
2015-07-24 15:09:52 -07:00
|
|
|
In global mode (ie, with \fB\-g\fP or \fB\-\-global\fP appended to the command),
|
2014-03-19 09:25:40 -07:00
|
|
|
it uninstalls the current package context as a global package\.
|
|
|
|
.P
|
2015-07-24 15:09:52 -07:00
|
|
|
\fBnpm uninstall\fP takes 3 exclusive, optional flags which save or update
|
2014-03-19 09:25:40 -07:00
|
|
|
the package version in your main package\.json:
|
2014-09-24 14:41:07 -07:00
|
|
|
.RS 0
|
|
|
|
.IP \(bu 2
|
2015-10-29 16:50:12 -07:00
|
|
|
\fB\-S, \-\-save\fP: Package will be removed from your \fBdependencies\fP\|\.
|
2014-09-24 14:41:07 -07:00
|
|
|
.IP \(bu 2
|
2015-10-29 16:50:12 -07:00
|
|
|
\fB\-D, \-\-save\-dev\fP: Package will be removed from your \fBdevDependencies\fP\|\.
|
2014-09-24 14:41:07 -07:00
|
|
|
.IP \(bu 2
|
2015-10-29 16:50:12 -07:00
|
|
|
\fB\-O, \-\-save\-optional\fP: Package will be removed from your \fBoptionalDependencies\fP\|\.
|
2017-07-14 10:52:48 -07:00
|
|
|
.IP \(bu 2
|
|
|
|
\fB\-\-no\-save\fP: Package will not be removed from your \fBpackage\.json\fP file\.
|
2014-09-24 14:41:07 -07:00
|
|
|
|
|
|
|
.RE
|
|
|
|
.P
|
2015-10-09 23:13:57 -07:00
|
|
|
Further, if you have an \fBnpm\-shrinkwrap\.json\fP then it will be updated as
|
|
|
|
well\.
|
|
|
|
.P
|
2019-11-18 21:01:39 +02:00
|
|
|
Scope is optional and follows the usual rules for npm help \fBscope\fP\|\.
|
2014-03-19 09:25:40 -07:00
|
|
|
.P
|
|
|
|
Examples:
|
2014-09-24 14:41:07 -07:00
|
|
|
.P
|
|
|
|
.RS 2
|
2014-11-04 15:08:12 -08:00
|
|
|
.nf
|
2014-03-19 09:25:40 -07:00
|
|
|
npm uninstall sax \-\-save
|
2014-09-24 14:41:07 -07:00
|
|
|
npm uninstall @myorg/privatepackage \-\-save
|
2014-03-19 09:25:40 -07:00
|
|
|
npm uninstall node\-tap \-\-save\-dev
|
|
|
|
npm uninstall dtrace\-provider \-\-save\-optional
|
2017-07-14 10:52:48 -07:00
|
|
|
npm uninstall lodash \-\-no\-save
|
2014-11-04 15:08:12 -08:00
|
|
|
.fi
|
2014-09-24 14:41:07 -07:00
|
|
|
.RE
|
2019-11-05 14:55:08 -05:00
|
|
|
.SS See Also
|
2014-09-24 14:41:07 -07:00
|
|
|
.RS 0
|
|
|
|
.IP \(bu 2
|
2019-11-18 21:01:39 +02:00
|
|
|
npm help prune
|
2014-09-24 14:41:07 -07:00
|
|
|
.IP \(bu 2
|
2019-11-18 21:01:39 +02:00
|
|
|
npm help install
|
2014-09-24 14:41:07 -07:00
|
|
|
.IP \(bu 2
|
2019-11-05 14:55:08 -05:00
|
|
|
npm help folders
|
2014-09-24 14:41:07 -07:00
|
|
|
.IP \(bu 2
|
2019-11-18 21:01:39 +02:00
|
|
|
npm help config
|
2014-09-24 14:41:07 -07:00
|
|
|
.IP \(bu 2
|
2019-11-05 14:55:08 -05:00
|
|
|
npm help npmrc
|
2014-09-24 14:41:07 -07:00
|
|
|
|
|
|
|
.RE
|