/plushcap/analysis/warp/youtube/VgPNtow7fNM

Why are node_modules SO BIG 🤦‍♂️ #javascript #software #technology #code #webdev

Company
Warp

Date published
March 4, 2024

Transcript

How are my JavaScript projects taking up 43gb of space? The infamous node modules folder can have hundreds, if not thousands of files within them, but here are some tools that you can use to clear that up. The first is PNPM, which creates a centralized store of all your dependencies so that it's not copied into each project. And sure, that's probably great for the next project that I do, but how about those 50 currently failed side projects that I have? There's this tool called NPkill that will search through all of your directories and find projects with node modules and tells you how much memory you can save. It will also order the results by last modified, which is really helpful so you don't accidentally delete the node modules of your most current project. So after my 50 different projects and my 30 different tutorials, I finally have a lot more space on my machine to take on even more.


By Matt Makai. 2021-2024.