DEV Community

Cover image for Delete all node_modules folders from your system ? πŸ€”
Murtaza Nathani
Murtaza Nathani

Posted on

Delete all node_modules folders from your system ? πŸ€”

Image meme for how big a node_modules can be

Is it giving you hard time to remove node_modules folders from each of your project ? πŸ™ˆ

Or

You never delete node_modules after finishing project due to the tedious work nature ? πŸ™Š

Or

Maybe you forget to delete it most of the time ? πŸ™‰


NO WORRIES!!! πŸŽ‰

We have one simple command to delete node_modules folders inside a particular folder... or to delete all node_modules from the system then run from home directory πŸ”₯

npx npkill
Enter fullscreen mode Exit fullscreen mode

Image how npkill works

Boom! πŸ’₯, that's it.. run this command and it shows a list of the node_modules directories in your system, as well as the size they take up. Then you can select using arrow keys and spacebar to erase it fast, Yay!


For more details check ➑️ here

Top comments (0)