DEV Community

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

Posted on

6

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

Heroku

Simplify your DevOps and maximize your time.

Since 2007, Heroku has been the go-to platform for developers as it monitors uptime, performance, and infrastructure concerns, allowing you to focus on writing code.

Learn More

Top comments (0)

Image of Datadog

Master Mobile Monitoring for iOS Apps

Monitor your app’s health with real-time insights into crash-free rates, start times, and more. Optimize performance and prevent user churn by addressing critical issues like app hangs, and ANRs. Learn how to keep your iOS app running smoothly across all devices by downloading this eBook.

Get The eBook

πŸ‘‹ Kindness is contagious

Please leave a ❀️ or a friendly comment on this post if you found it helpful!

Okay