Skip to main content
4 of 8
Corrected spelling and improved formatting
Dan Puzey
  • 34.3k
  • 4
  • 77
  • 98

how to uninstall npm modules in node js?

As commonly known, any npm module can be installed by running a simple command: npm install <module_name>.

I have installed a few modules that I do not use anymore and I just want to get them off. I have a few questions regarding this:

  • Do we have any command or process to uninstall a module from the root (something like npm uninstall <module_name>) or will simply removing the module files do?

  • How does it affect us if we keep the unused modules?

Manish Kumar
  • 15.5k
  • 5
  • 21
  • 27