TIL: What does npm uninstall do?

TIL: What does npm uninstall do?
Photo by Jan Kahánek / Unsplash

$ npm uninstall localtunnel

removed 22 packages, and audited 1 package in 126ms

found 0 vulnerabilities
  • npm uninstall  removes the package from your package.json.
  • npm uninstall deletes the node_modules/localtunnel directory and localtunnel's dependencies in node_modules.


Uninstall a Package with npm
`npm uninstall` lets you uninstall a package that you previously installed, including all of the package’s dependencies. Here’s what you need to know.