npkill
I recently cleaned up my work laptop and came once again across this very useful package, so I thought I share it here, also as a continuous reminder to myself that it exists 😅
The tool itself is simple. Just run
npx npkilland it will detect all
node_modulefolders, giving you the option to select which ones to delete and which ones you might want to keep. Usually cleans up a fair few GB for me every bluemoon that I remember and run it 😄🎉