2
Xoka
5y

I'm really frustrated by the size of node_modules folder that gets created every time for every project. So, I've been looking for some time-space saving solutions. And I found PNPM ( https://pnpm.js.org/ ) , Yarn ( https://yarnpkg.com/ ) and Pkglink ( https://github.com/jeffbski/pkglink ). But I'm not sure which is better to serve my purpose.

Things I'm looking forward to solving:

1. I don't want to re-download the same packages over and over again
2. I don't want the same packages to be in multiple projects and eat up space
3. I want a stable, fast and disk space saving solution

Looking for experts advice.

Comments
  • 0
    Can't give advice there, just leaving a tip on checking out Deno, it does away with node_modules. It still isn't prod ready but maybe some of your projects could run in deno instead.
  • 0
    @molaram downloading once, thats okay. But downloading over and over again, that's what I want to solve. if you have any solution like that, please let us know
  • 0
    @molaram I tried that and its fucking slow. Takes life time to compile a simple line changes.
  • 0
    I am looking forward to npm 8 or something, I think I read somewhere that this should be a solved problem in the futute.
Add Comment