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)