Spyke

those devs understand why their assets are so large. but if you ask a js dev why they webpack instead of compiling they just start crying and run away

18

It depends. If you switch between different branches a lot, Library just grows to infinite sizes due to storing everything from each branch that is unique to those branches. I once had to clear about 600 gigs of library lol.

7
lemmy.ml

That's the one that's like Yarn’s global cache, but without compression, right?

7
burnsoreply
lemmy.world

Not sure, but probably. I only used yarn 1. Never got around to trying yarn 2+ as migrating our fairly large monorepo project at the time felt like a pretty large and complicated ordeal. By the time I switched jobs npm was already a whole lot better in the ways most important to me.

The little I’ve read about and used pnpm so far it seems a lot more plug n play than yarn while bringing big benefits. Even workspaces seems a lot simpler than it ever was with yarn (at least when I used it). Love the idea of non-flat node_modules and simplified lock files as well.

Time will tell if npm incorporates enough of pnpm’s features to make it obsolete eventually but for now I can understand why it seems so widely adopted.

4

I mean, the essential difference of no node_modules is shared, as are workspaces.

I think pnpm is more manual, but therefore less magic than yarn. More compatible, less stuff just works

3

I love when I have to wipe node_modules and reinstall and it takes like an hour because there's thousands of packages lol

14
lemmy.world

i recently begged my cs teacher to install npm on the school computers. shouldnt have been suprised when i immediately ran out of storage

9
tetris11reply
lemmy.ml

Let me introduce you to my little friend: conda

2
pawb.social

I would've made this joke earlier but I was waiting for Conda to resolve dependencies

5

Try micromamba, its a drop in replacement for conda is 100x faster for resolving

2

Oh yes. Creating an empty environment can easily take up several gigabytes...

3
brckdreply
lemmy.world

i just checked and it seems to be a really cool package manager for several languages. but how does that help with storage limitations?

1
tetris11reply
lemmy.ml

Oh no, I meant it will bloat your storage more than anything else

5

The overlap between people that write C and people that write JavaScript is negligible.

4

You reached the end