Npm Uninstall Package

May 26, 2019

Local

npm uninstall PACKAGE_NAME - remove from node_modules.

npm uninstall PACKAGE_NAME --save - remove from node_modules and package.json (dependencies).

npm uninstall PACKAGE_NAME --save-dev - remove from node_modules and package.json (devDependencies).

Global

npm -g uninstall PACKAGE_NAME or npm --global uninstall PACKAGE_NAME- uninstall global package.

List global packages: npm ls -g --depth 0

References:

This work is licensed under a
Creative Commons Attribution-NonCommercial 4.0 International License.