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:

❤️ Is this article helpful?

Buy me a coffee ☕ or support my work via PayPal to keep this space 🖖 and ad-free.

Do send some 💖 to @d_luaz or share this article.

✨ By Desmond Lua

A dream boy who enjoys making apps, travelling and making youtube videos. Follow me on @d_luaz

👶 Apps I built

Travelopy - discover travel places in Malaysia, Singapore, Taiwan, Japan.