npm uninstall Explained

What npm uninstall does, with an example.

Published November 11, 2026

npm uninstall removes a package from node_modules and from package.json.

Key points

  • Part of the standard npm CLI that ships with Node.js

Example

npm uninstall lodash
More JavaScript articles