Skip to main content
1 of 8
Manish Kumar
  • 15.5k
  • 5
  • 21
  • 27

how to uninstall npm modules in node js?

As commonly as we konw any npm module is installed by a simple pattern saying : npm install <module_name>

I have installed a few modules that I do not user 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 simply removing the module files will do?

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

Manish Kumar
  • 15.5k
  • 5
  • 21
  • 27