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.
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.
33 Comments
AVincentInSpace@pawb.social · 45 pts · 2y
laughs in Cargo
./targetsirdorius@programming.dev · 25 pts · 2y
Came here to say this, but I was delayed by having to clean my cargo target folder.
Gallardo994@sh.itjust.works · 20 pts · 2y
Somewhere to the right has to be unity's Library folder
v9CYKjLeia10dZpz88iU@programming.dev · 18 pts · 2y
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
Gallardo994@sh.itjust.works · 7 pts · 2y
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.
burnso@lemmy.world · 17 pts · 2y
https://pnpm.io/
flying_sheep@lemmy.ml · 7 pts · 2y
That's the one that's like Yarn’s global cache, but without compression, right?
burnso@lemmy.world · 4 pts · 2y
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.
flying_sheep@lemmy.ml · 3 pts · 2y
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
lemmesay@discuss.tchncs.de · 5 pts · 2y
the only JS package manager I have on my system.
for unruly projects, I just pass --shamefully-hoist
somegeek@programming.dev · 16 pts · 2y
2012 called, they want their meme back
Octopus1348@lemy.lol · 15 pts · 2y
It's still true tho.
summerof69@lemm.ee · 8 pts · 2y
Heavy objects cause time dilation.
killeronthecorner@lemmy.world · 15 pts · 2y
That's heavy man
Timwi@kbin.social · 6 pts · 2y
Great Scott!
Daxtron2@startrek.website · 14 pts · 2y
I love when I have to wipe node_modules and reinstall and it takes like an hour because there's thousands of packages lol
xantoxis@lemmy.world · 10 pts · 2y
antique programming memes roadshow
cardboardchris@lemmings.world · 10 pts · 2y
you know, this meme is old as hell, but I still like it.
brckd@lemmy.world · 9 pts · 2y
i recently begged my cs teacher to install npm on the school computers. shouldnt have been suprised when i immediately ran out of storage
tetris11@lemmy.ml · 2 pts · 2y
Let me introduce you to my little friend: conda
AVincentInSpace@pawb.social · 5 pts · 2y
I would've made this joke earlier but I was waiting for Conda to resolve dependencies
tetris11@lemmy.ml · 2 pts · 2y
Try micromamba, its a drop in replacement for conda is 100x faster for resolving
EarMaster@lemmy.world · 3 pts · 2y
Oh yes. Creating an empty environment can easily take up several gigabytes...
brckd@lemmy.world · 1 pts · 2y
i just checked and it seems to be a really cool package manager for several languages. but how does that help with storage limitations?
tetris11@lemmy.ml · 5 pts · 2y
Oh no, I meant it will bloat your storage more than anything else
brckd@lemmy.world · 5 pts · 2y
oh nice! ill try that on the school computers
KeefChief13@lemmy.world · 9 pts · 2y
I have not laugued at one of these out loud untill now.
xmunk@sh.itjust.works · 8 pts · 2y
npm searchagrees.uis@lemmy.world · 2 pts · 2y
Time to write in C
theherk@lemmy.world · 4 pts · 2y
The overlap between people that write C and people that write JavaScript is negligible.
milicent_bystandr@lemm.ee · 2 pts · 2y
Words of Wisdom
corsicanguppy@lemmy.ca · 2 pts · 2y
Nodes baggage just adds weight to the depth of the supply chain risk.
thantik@lemmy.world · 2 pts · 2y
npm install everything
https://www.bleepingcomputer.com/news/security/everything-blocks-devs-from-removing-their-own-npm-packages/