1 min read

Deleting node modules

Despite my best efforts and the fact that I am mostly an aspiring :go-gandalf: now

https://thegrumpyunicorn.co/products/gandalf-the-gopher

my Mac got full of node modules again! Handy command to the rescue:

npx npkill
npkill
List any node_modules directories in your system, as well as the space they take up. You can then select which ones you want to erase to free up space.. Latest version: 0.10.0, last published: a month ago. Start using npkill in your project by running `npm i npkill`. There are no other projects in t…

I would have thought his package is more popular, apparently not many people forget to delete projects that haven't received any love for extended periods of time!

Great help and a reminder that a popular joke may still be true.