Go to main content

man pages section 1: User Commands

Exit Print View

Updated: Thursday, June 13, 2019
 
 

npm-uninstall (1)

Name

npm-uninstall - Remove a package

Synopsis

npm uninstall [<@scope>/]<pkg>[@<version>]... [-S|--save|-D|--save-dev|-O|--save-optional|--no-save]

aliases: remove, rm, r, un, unlink

Description

NPM-UNINSTALL(1)                                              NPM-UNINSTALL(1)



NAME
       npm-uninstall - Remove a package

SYNOPSIS
         npm uninstall [<@scope>/]<pkg>[@<version>]... [-S|--save|-D|--save-dev|-O|--save-optional|--no-save]

         aliases: remove, rm, r, un, unlink

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:

       o -S, --save: Package will be removed from your dependencies.

       o -D, --save-dev: Package will be removed from your devDependencies.

       o -O, --save-optional: Package will be removed from your optionalDepen-
         dencies.

       o --no-save: Package will not be removed from your package.json file.


       Further,  if you have an npm-shrinkwrap.json then it will be updated as
       well.

       Scope is optional and follows the usual rules for npm help 7 npm-scope.

       Examples:

         npm uninstall sax --save
         npm uninstall @myorg/privatepackage --save
         npm uninstall node-tap --save-dev
         npm uninstall dtrace-provider --save-optional
         npm uninstall lodash --no-save


ATTRIBUTES
       See attributes(7) for descriptions of the following attributes:


       +---------------+-------------------------+
       |ATTRIBUTE TYPE |    ATTRIBUTE VALUE      |
       +---------------+-------------------------+
       |Availability   | runtime/nodejs/nodejs-8 |
       +---------------+-------------------------+
       |Stability      | Pass-thru volatile      |
       +---------------+-------------------------+
SEE ALSO
       o npm help prune

       o npm help install

       o npm help 5 folders

       o npm help config

       o npm help 7 config

       o npm help 5 npmrc





NOTES
       This    software    was    built    from    source     available     at
       https://github.com/oracle/solaris-userland.    The  original  community
       source   was   downloaded   from     https://github.com/nodejs/node/ar-
       chive/v8.15.1.zip

       Further information about this software can be found on the open source
       community website at https://github.com/nodejs/node.



                                  August 2018                 NPM-UNINSTALL(1)